module Coletivo::Models::Person::InstanceMethods

Public Instance Methods

rate!(rateable, weight) click to toggle source
# File lib/coletivo/models/person.rb, line 16
def rate!(rateable, weight)
  Coletivo::Config.ratings_container.create!({
    :person => self,
    :rateable => rateable,
    :weight => weight
  })
end