star voting system for proposals

This commit is contained in:
differentreality 2013-08-16 12:46:49 +03:00
parent 2314d943e1
commit 834362491e
17 changed files with 157 additions and 3 deletions

10
app/models/vote.rb Normal file
View file

@ -0,0 +1,10 @@
class Vote < ActiveRecord::Base
attr_accessible :rating
belongs_to :person
belongs_to :event
delegate :first_name, :to => :person
delegate :last_name, :to => :person
delegate :public_name, :to => :person
end