Class: Decidim::ParticipatoryProcesses::OrganizationPrioritizedParticipatoryProcesses
- Inherits:
-
Rectify::Query
- Object
- Rectify::Query
- Decidim::ParticipatoryProcesses::OrganizationPrioritizedParticipatoryProcesses
- Defined in:
- decidim-participatory_processes/app/queries/decidim/participatory_processes/organization_prioritized_participatory_processes.rb
Overview
This query class filters public processes given an organization and a filter in a meaningful prioritized order.
Instance Method Summary collapse
-
#initialize(organization, filter = "active") ⇒ OrganizationPrioritizedParticipatoryProcesses
constructor
A new instance of OrganizationPrioritizedParticipatoryProcesses.
- #query ⇒ Object
Constructor Details
#initialize(organization, filter = "active") ⇒ OrganizationPrioritizedParticipatoryProcesses
Returns a new instance of OrganizationPrioritizedParticipatoryProcesses.
8 9 10 11 |
# File 'decidim-participatory_processes/app/queries/decidim/participatory_processes/organization_prioritized_participatory_processes.rb', line 8 def initialize(organization, filter = "active") @organization = organization @filter = filter end |
Instance Method Details
#query ⇒ Object
13 14 15 16 17 18 19 |
# File 'decidim-participatory_processes/app/queries/decidim/participatory_processes/organization_prioritized_participatory_processes.rb', line 13 def query Rectify::Query.merge( OrganizationPublishedParticipatoryProcesses.new(@organization), PrioritizedParticipatoryProcesses.new, FilteredParticipatoryProcesses.new(@filter) ).query end |