Class: Decidim::ParticipatoryProcesses::GroupPublishedParticipatoryProcesses
- Inherits:
-
Query
- Object
- Query
- Decidim::ParticipatoryProcesses::GroupPublishedParticipatoryProcesses
- Defined in:
- app/queries/decidim/participatory_processes/group_published_participatory_processes.rb
Overview
This query class filters published processes of a participatory process group
Instance Method Summary collapse
-
#initialize(group, user = nil) ⇒ GroupPublishedParticipatoryProcesses
constructor
A new instance of GroupPublishedParticipatoryProcesses.
- #query ⇒ Object
Constructor Details
#initialize(group, user = nil) ⇒ GroupPublishedParticipatoryProcesses
Returns a new instance of GroupPublishedParticipatoryProcesses.
7 8 9 10 |
# File 'app/queries/decidim/participatory_processes/group_published_participatory_processes.rb', line 7 def initialize(group, user = nil) @group = group @user = user end |
Instance Method Details
#query ⇒ Object
12 13 14 15 16 17 18 |
# File 'app/queries/decidim/participatory_processes/group_published_participatory_processes.rb', line 12 def query Decidim::Query.merge( GroupParticipatoryProcesses.new(@group), VisibleParticipatoryProcesses.new(@user), PublishedParticipatoryProcesses.new ).query end |