add into user decorator (presenter) to full user name
This commit is contained in:
parent
c098ac6430
commit
b6458ae3b3
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue