Module: FindGroupProjects

Extended by:
ActiveSupport::Concern
Included in:
BoardPolicy, GroupPolicy
Defined in:
app/policies/concerns/find_group_projects.rb

Instance Method Summary collapse

Instance Method Details

#group_projects_for(user:, group:, only_owned: true) ⇒ Object


6
7
8
9
10
11
12
# File 'app/policies/concerns/find_group_projects.rb', line 6

def group_projects_for(user:, group:, only_owned: true)
  GroupProjectsFinder.new(
    group: group,
    current_user: user,
    options: { include_subgroups: true, only_owned: only_owned }
  ).execute
end