Module: Coletivo::Models::Person::InstanceMethods

Defined in:
lib/coletivo/models/person.rb

Overview

ClassMethods

Instance Method Summary collapse

Instance Method Details

#rate!(rateable, weight) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/coletivo/models/person.rb', line 16

def rate!(rateable, weight)
  Coletivo::Config.ratings_container.create!({
    :person => self,
    :rateable => rateable,
    :weight => weight
  })
end