Sha256: e27853f330dd1c2897801461a57eb6601407f6164477db4305fc94987a9d6732

Contents?: true

Size: 465 Bytes

Versions: 63

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Consultations
    # This query class filters all questions given an organization.
    class OrganizationQuestions < Rectify::Query
      def self.for(organization)
        new(organization).query
      end

      def initialize(organization)
        @organization = organization
      end

      def query
        Decidim::Consultations::Question.where(organization: @organization)
      end
    end
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
decidim-consultations-0.17.2 app/queries/decidim/consultations/organization_questions.rb
decidim-consultations-0.18.0 app/queries/decidim/consultations/organization_questions.rb
decidim-consultations-0.17.1 app/queries/decidim/consultations/organization_questions.rb
decidim-consultations-0.16.1 app/queries/decidim/consultations/organization_questions.rb
decidim-consultations-0.17.0 app/queries/decidim/consultations/organization_questions.rb
decidim-consultations-0.16.0 app/queries/decidim/consultations/organization_questions.rb
decidim-consultations-0.15.2 app/queries/decidim/consultations/organization_questions.rb
decidim-consultations-0.15.1 app/queries/decidim/consultations/organization_questions.rb
decidim-consultations-0.15.0 app/queries/decidim/consultations/organization_questions.rb
decidim-consultations-0.14.4 app/queries/decidim/consultations/organization_questions.rb
decidim-consultations-0.14.3 app/queries/decidim/consultations/organization_questions.rb
decidim-consultations-0.14.2 app/queries/decidim/consultations/organization_questions.rb
decidim-consultations-0.14.1 app/queries/decidim/consultations/organization_questions.rb
decidim-consultations-0.13.1 app/queries/decidim/consultations/organization_questions.rb
decidim-consultations-0.12.2 app/queries/decidim/consultations/organization_questions.rb
decidim-consultations-0.13.0 app/queries/decidim/consultations/organization_questions.rb
decidim-consultations-0.12.1 app/queries/decidim/consultations/organization_questions.rb
decidim-consultations-0.13.0.pre1 app/queries/decidim/consultations/organization_questions.rb
decidim-consultations-0.12.0 app/queries/decidim/consultations/organization_questions.rb
decidim-consultations-0.11.2 app/queries/decidim/consultations/organization_questions.rb