Class: Decidim::ParticipatoryProcesses::OrganizationParticipatoryProcessGroups

Inherits:
Rectify::Query
  • Object
show all
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

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

#queryObject


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