About
The selectivizr-rails gem will include the selectivizr.js library into your Rails app via the asset pipeline.
How to Use
Add the following to your Gemfile and run bundle install
:
gem 'selectivizr-rails'
Add the following to the head
tag in your layout:
<!--[if lte IE 8]>
= javascript_include_tag 'selectivizr'
<![endif]-->
Requirements
- Rails 3.1+
- The main JavaScript library (JQuery, Prototype, etc.) must be included prior to the selectivizr include tag.
Contributing
There shouldn't be much to do with this repo, but if you would like to improve the code or do a version bump, just fork the code and submit a pull request. I try to deal with all pull requests quickly.
License
This gem code is free to use, modify, distribute or use in any way you would like. The selectivizr.js library is released under the MIT License.
Thanks
A large portion of this gem was assembled based on the source code for the modernizer-rails gem by Russ Frisch.