fixes specs displaying admin name and email

This commit is contained in:
rgarcia
2016-03-08 12:58:48 +01:00
parent 543870062f
commit df454f1211
2 changed files with 5 additions and 1 deletions

View File

@@ -3,4 +3,8 @@ class Administrator < ActiveRecord::Base
delegate :name, :email, to: :user
validates :user_id, presence: true, uniqueness: true
def name_and_email
"#{name} (#{email})"
end
end