Class: Decidim::Votings::OrganizationPublishedVotings
- Inherits:
-
Query
- Object
- Query
- Decidim::Votings::OrganizationPublishedVotings
- Defined in:
- app/queries/decidim/votings/organization_published_votings.rb
Overview
This query class filters published votings given an organization.
Instance Method Summary collapse
-
#initialize(organization) ⇒ OrganizationPublishedVotings
constructor
A new instance of OrganizationPublishedVotings.
- #query ⇒ Object
Constructor Details
#initialize(organization) ⇒ OrganizationPublishedVotings
Returns a new instance of OrganizationPublishedVotings.
7 8 9 |
# File 'app/queries/decidim/votings/organization_published_votings.rb', line 7 def initialize(organization) @organization = organization end |
Instance Method Details
#query ⇒ Object
11 12 13 14 15 16 |
# File 'app/queries/decidim/votings/organization_published_votings.rb', line 11 def query Decidim::Query.merge( OrganizationVotings.new(@organization), PublishedVotings.new ).query end |