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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

This project is released under the MIT License