Commit b6458ae3b3afd872720e1abbd5e0a284752c2323
Committed by
Dmitriy Zaporozhets
1 parent
c098ac64
Exists in
master
and in
4 other branches
add into user decorator (presenter) to full user name
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
app/decorators/user_decorator.rb
@@ -8,4 +8,8 @@ class UserDecorator < ApplicationDecorator | @@ -8,4 +8,8 @@ class UserDecorator < ApplicationDecorator | ||
8 | def tm_of(project) | 8 | def tm_of(project) |
9 | project.team_member_by_id(self.id) | 9 | project.team_member_by_id(self.id) |
10 | end | 10 | end |
11 | + | ||
12 | + def name_with_email | ||
13 | + "#{name} (#{email})" | ||
14 | + end | ||
11 | end | 15 | end |