Sha256: 987b9f118c59e703786aab0f9ac34123a989e71b89649794ce1d4c72fbb60fa9

Contents?: true

Size: 368 Bytes

Versions: 19

Compression:

Stored size: 368 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Votings
    # This query selects the promoted votings
    class OrganizationPromotedVotings < Decidim::Query
      def initialize(organization)
        @organization = organization
      end

      def query
        Decidim::Votings::Voting.where(organization: @organization).promoted
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
decidim-elections-0.28.4 app/queries/decidim/votings/organization_promoted_votings.rb
decidim-elections-0.27.9 app/queries/decidim/votings/organization_promoted_votings.rb
decidim-elections-0.28.3 app/queries/decidim/votings/organization_promoted_votings.rb
decidim-elections-0.27.8 app/queries/decidim/votings/organization_promoted_votings.rb
decidim-elections-0.28.2 app/queries/decidim/votings/organization_promoted_votings.rb
decidim-elections-0.27.7 app/queries/decidim/votings/organization_promoted_votings.rb
decidim-elections-0.28.1 app/queries/decidim/votings/organization_promoted_votings.rb
decidim-elections-0.27.6 app/queries/decidim/votings/organization_promoted_votings.rb
decidim-elections-0.28.0 app/queries/decidim/votings/organization_promoted_votings.rb
decidim-elections-0.27.5 app/queries/decidim/votings/organization_promoted_votings.rb
decidim-elections-0.28.0.rc5 app/queries/decidim/votings/organization_promoted_votings.rb
decidim-elections-0.28.0.rc4 app/queries/decidim/votings/organization_promoted_votings.rb
decidim-elections-0.27.4 app/queries/decidim/votings/organization_promoted_votings.rb
decidim-elections-0.27.3 app/queries/decidim/votings/organization_promoted_votings.rb
decidim-elections-0.27.2 app/queries/decidim/votings/organization_promoted_votings.rb
decidim-elections-0.27.1 app/queries/decidim/votings/organization_promoted_votings.rb
decidim-elections-0.27.0 app/queries/decidim/votings/organization_promoted_votings.rb
decidim-elections-0.27.0.rc2 app/queries/decidim/votings/organization_promoted_votings.rb
decidim-elections-0.27.0.rc1 app/queries/decidim/votings/organization_promoted_votings.rb