User/Person models merge
This commit is contained in:
parent
66b84e3660
commit
23bf55b66c
80 changed files with 1064 additions and 1221 deletions
|
|
@ -1,10 +1,8 @@
|
|||
class Vote < ActiveRecord::Base
|
||||
attr_accessible :rating
|
||||
|
||||
belongs_to :person
|
||||
|
||||
belongs_to :user
|
||||
belongs_to :event
|
||||
|
||||
delegate :first_name, :to => :person
|
||||
delegate :last_name, :to => :person
|
||||
delegate :public_name, :to => :person
|
||||
end
|
||||
|
||||
delegate :name, :to => :user
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue