Redesign Admin -> user -> show page
This commit is contained in:
parent
6b24c375cb
commit
ed3f44085e
6 changed files with 99 additions and 135 deletions
|
@ -313,4 +313,8 @@ class User < ActiveRecord::Base
|
|||
UserTeam.where(id: ids)
|
||||
end
|
||||
end
|
||||
|
||||
def owned_teams
|
||||
UserTeam.where(owner_id: self.id)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue