vendor/plugins/acts_as_rateable/lib/acts_as_rateable.rb
# Rates the object by a given score. A user object can be passed to the method.
Rates the object by a given score. A user object can be passed to the method.
Rates the object by a given score . A user object can be passed to the method .
def rate_it( score, user_id )
					return unless score
					rate = Rate.find_or_create_by_score( score.to_i )
					rate.user_id = user_id
					rates << rate
				end
def rate_it ( score , user_id ) return unless score rate = Rate . find_or_create_by_score ( score . to_i ) rate . user_id = user_id rates << rate end
Rates the object by a given score.
Rates the object by a given score .
score
<not_specific>
user_id
<not_specific>