Implement Event Ratings

This commit is contained in:
shlok007 2016-09-22 20:06:46 -04:00 committed by Shlok Srivastava
parent 5be1ad52ee
commit 20f4853487
67 changed files with 1298 additions and 378 deletions

4
app/models/rate.rb Normal file
View file

@ -0,0 +1,4 @@
class Rate < ActiveRecord::Base
belongs_to :rater, class_name: 'User'
belongs_to :rateable, polymorphic: true
end