Class: Coletivo::Models::PersonRating

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/coletivo/models/person_rating.rb

Class Method Summary collapse

Class Method Details

.find_for_recommendation(person, rateable_type) ⇒ Object



9
10
11
# File 'lib/coletivo/models/person_rating.rb', line 9

def self.find_for_recommendation(person, rateable_type)
  where(:rateable_type => rateable_type.to_s)
end