adds name and email for valuators

This commit is contained in:
rgarcia
2016-03-08 14:08:41 +01:00
parent cd8cbef389
commit fb2505d1b0

View File

@@ -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