0
0
Fork 0
mirror of https://github.com/ENSL/ensl.org.git synced 2025-02-19 10:31:36 +00:00
ensl.org/vendor/plugins/acts_as_rateable/lib/rating.rb

7 lines
182 B
Ruby
Raw Normal View History

class Rating < ActiveRecord::Base
belongs_to :rate
belongs_to :rateable, :polymorphic => true
validates_uniqueness_of :user_id, :scope => [:rateable_id, :rateable_type]
end