add into user decorator (presenter) to full user name

This commit is contained in:
Andrey Kumanyaev 2013-01-19 21:51:01 +04:00 committed by Dmitriy Zaporozhets
parent c098ac6430
commit b6458ae3b3

View file

@ -8,4 +8,8 @@ class UserDecorator < ApplicationDecorator
def tm_of(project)
project.team_member_by_id(self.id)
end
def name_with_email
"#{name} (#{email})"
end
end