Class: Decidim::PublicComponents
- Defined in:
- app/queries/decidim/public_components.rb
Overview
This query finds the published components for all public participatory spaces in the given organization. Can filter by manifest name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(organization, manifest_name: nil) ⇒ PublicComponents
constructor
A new instance of PublicComponents.
- #query ⇒ Object
Methods inherited from Query
#cached_query, #each, #eager?, #exists?, merge, #none?, #relation?, #|
Constructor Details
#initialize(organization, manifest_name: nil) ⇒ PublicComponents
Returns a new instance of PublicComponents.
11 12 13 14 |
# File 'app/queries/decidim/public_components.rb', line 11 def initialize(organization, manifest_name: nil) @organization = organization @manifest_name = manifest_name end |
Class Method Details
.for(organization, manifest_name: nil) ⇒ Object
7 8 9 |
# File 'app/queries/decidim/public_components.rb', line 7 def self.for(organization, manifest_name: nil) new(organization, manifest_name:).query end |