This plugin provides a simple way to track users favorites.
- Allow any model to be favorited.
- Allow any model to favorite. In other words, favoriter do not have to come from a user, they can come from any model (such as a Group or Team).
- Provide an easy to write/read syntax.
Add this line to your application's Gemfile:
gem 'acts_as_favoritable'
And then execute:
$ bundle
Or install it yourself as:
$ gem install acts_as_favoritable
$ rails generate acts_as_favoritable:migration
$ rake db:migrate
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request