| Module | FortiusOne::Acts::Rateable::ClassMethods |
| In: |
lib/acts_as_rateable.rb
|
| rating | -> | old_rating |
Adds ratings functionality to an ActiveRecord model
The following methods are added and available to the model
rate(a_rating) : Rate the object with a_rating (integer)
rating= : Alias for rate
rating : Return the object’s rating
find_all_by_rating : Find all objects matching the rating criteria
find_by_rating : Find the first object matching the rating criteria