Class: Rating
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Rating
- Defined in:
- lib/generators/rateme/templates/model.rb
Class Method Summary collapse
Class Method Details
.find_similar(rating) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/generators/rateme/templates/model.rb', line 10 def self.find_similar() Rating.find( :first, :conditions => { :ip_address => .ip_address, :rateable_id => .rateable_id, :rateable_type => .rateable_type } ) end |