##favorite_it
This gem allows you to add a simple way to favorite records.
##Getting started
favorite_it works with Rails 3.2 onwards. You can add it to your Gemfile with:
gem 'favorite_it'
Run the install generator to add an initializer file and copy a migration file:
rails g favorite_it:install
Migrate them:
rake db:migrate
Edit config/initializer/favorite_it.rb
:
FavoriteIt.favorited_class = Product
It is heavily recommended for you to change railsties order in
config/application.rb
:
config.railties_order = [FavoriteIt::Engine, :main_app, :all]
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
This project is released under the MIT
License