Use name+username in team -> new
This commit is contained in:
parent
fa9a8c3847
commit
1587caa3e4
4 changed files with 6 additions and 6 deletions
|
@ -340,4 +340,8 @@ class User < ActiveRecord::Base
|
|||
def owned_teams
|
||||
UserTeam.where(owner_id: self.id)
|
||||
end
|
||||
|
||||
def name_with_username
|
||||
"#{name} (#{username})"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue