star voting system for proposals
This commit is contained in:
parent
2314d943e1
commit
834362491e
17 changed files with 157 additions and 3 deletions
10
app/models/vote.rb
Normal file
10
app/models/vote.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue