adds name and email for valuators
This commit is contained in:
@@ -6,4 +6,8 @@ class Valuator < ActiveRecord::Base
|
||||
has_many :spending_proposals, through: :valuation_assignments
|
||||
|
||||
validates :user_id, presence: true, uniqueness: true
|
||||
|
||||
def name_and_email
|
||||
"#{name} (#{email})"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user