Class: Decidim::ParticipatoryProcesses::OrganizationPromotedParticipatoryProcessGroups
- Inherits:
-
Query
- Object
- Query
- Decidim::ParticipatoryProcesses::OrganizationPromotedParticipatoryProcessGroups
- Defined in:
- app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
Overview
This query class filters participatory process groups given an organization.
Instance Method Summary collapse
-
#initialize(organization) ⇒ OrganizationPromotedParticipatoryProcessGroups
constructor
A new instance of OrganizationPromotedParticipatoryProcessGroups.
- #query ⇒ Object
Constructor Details
#initialize(organization) ⇒ OrganizationPromotedParticipatoryProcessGroups
Returns a new instance of OrganizationPromotedParticipatoryProcessGroups.
7 8 9 |
# File 'app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb', line 7 def initialize(organization) @organization = organization end |
Instance Method Details
#query ⇒ Object
11 12 13 |
# File 'app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb', line 11 def query PromotedParticipatoryProcessGroups.new.query.where(organization: @organization) end |