Sha256: bbcd67db1dc190f2c0fb3d5475b3e3d69acd19d8112c64ab037e698fe4eefd5b

Contents?: true

Size: 445 Bytes

Versions: 25

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Votings
    # This query class filters published votings given an organization.
    class OrganizationPublishedVotings < Rectify::Query
      def initialize(organization)
        @organization = organization
      end

      def query
        Rectify::Query.merge(
          OrganizationVotings.new(@organization),
          PublishedVotings.new
        ).query
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
decidim-elections-0.26.10 app/queries/decidim/votings/organization_published_votings.rb
decidim-elections-0.26.9 app/queries/decidim/votings/organization_published_votings.rb
decidim-elections-0.26.8 app/queries/decidim/votings/organization_published_votings.rb
decidim-elections-0.26.7 app/queries/decidim/votings/organization_published_votings.rb
decidim-elections-0.26.5 app/queries/decidim/votings/organization_published_votings.rb
decidim-elections-0.26.4 app/queries/decidim/votings/organization_published_votings.rb
decidim-elections-0.26.3 app/queries/decidim/votings/organization_published_votings.rb
decidim-elections-0.26.2 app/queries/decidim/votings/organization_published_votings.rb
decidim-elections-0.26.1 app/queries/decidim/votings/organization_published_votings.rb
decidim-elections-0.26.0 app/queries/decidim/votings/organization_published_votings.rb
decidim-elections-0.26.0.rc2 app/queries/decidim/votings/organization_published_votings.rb
decidim-elections-0.26.0.rc1 app/queries/decidim/votings/organization_published_votings.rb
decidim-elections-0.25.2 app/queries/decidim/votings/organization_published_votings.rb
decidim-elections-0.25.1 app/queries/decidim/votings/organization_published_votings.rb
decidim-elections-0.25.0 app/queries/decidim/votings/organization_published_votings.rb
decidim-elections-0.25.0.rc4 app/queries/decidim/votings/organization_published_votings.rb
decidim-elections-0.25.0.rc3 app/queries/decidim/votings/organization_published_votings.rb
decidim-elections-0.25.0.rc2 app/queries/decidim/votings/organization_published_votings.rb
decidim-elections-0.25.0.rc1 app/queries/decidim/votings/organization_published_votings.rb
decidim-elections-0.24.3 app/queries/decidim/votings/organization_published_votings.rb