Module FortiusOne::Acts::Rateable::ClassMethods
In: lib/acts_as_rateable.rb

Methods

Included Modules

FortiusOne::Acts::Rateable::InstanceMethods

External Aliases

rating -> old_rating

Public Instance methods

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

Rate this object with a_rating, also aliased as rating=

Return the rating of this object

rating=(a_rating)

Alias for rate

[Validate]