Refactor abilities. Added ProjectUpdate context. Fixed few bugs with namespaces
This commit is contained in:
parent
a1ffc673b9
commit
eb1004f789
18 changed files with 127 additions and 53 deletions
|
@ -13,7 +13,9 @@
|
|||
|
||||
class Group < Namespace
|
||||
def users
|
||||
User.joins(:users_projects).where(users_projects: {project_id: project_ids}).uniq
|
||||
users = User.joins(:users_projects).where(users_projects: {project_id: project_ids})
|
||||
users = users << owner
|
||||
users.uniq
|
||||
end
|
||||
|
||||
def human_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue