Class: Decidim::ParticipatoryProcesses::OrganizationParticipatoryProcessGroups
- Inherits:
-
Query
- Object
- Query
- Decidim::ParticipatoryProcesses::OrganizationParticipatoryProcessGroups
- Defined in:
- decidim-participatory_processes/app/queries/decidim/participatory_processes/organization_participatory_process_groups.rb
Overview
This query class filters participatory process groups given an organization.
Instance Method Summary collapse
-
#initialize(organization) ⇒ OrganizationParticipatoryProcessGroups
constructor
A new instance of OrganizationParticipatoryProcessGroups.
- #query ⇒ Object
Methods inherited from Query
#cached_query, #each, #eager?, #exists?, merge, #none?, #relation?, #|
Constructor Details
#initialize(organization) ⇒ OrganizationParticipatoryProcessGroups
Returns a new instance of OrganizationParticipatoryProcessGroups.
7 8 9 |
# File 'decidim-participatory_processes/app/queries/decidim/participatory_processes/organization_participatory_process_groups.rb', line 7 def initialize(organization) @organization = organization end |
Instance Method Details
#query ⇒ Object
11 12 13 |
# File 'decidim-participatory_processes/app/queries/decidim/participatory_processes/organization_participatory_process_groups.rb', line 11 def query Decidim::ParticipatoryProcessGroup.where(organization: @organization) end |