Sha256: d4bb5aba2e3bf035e17c20f4168d3298470f7f19807a9c7e0339ffab909027fe

Contents?: true

Size: 493 Bytes

Versions: 5

Compression:

Stored size: 493 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # This query class filters public processes given an organization in a
  # meaningful prioritized order.
  class OrganizationPrioritizedParticipatoryProcesses < Rectify::Query
    def initialize(organization)
      @organization = organization
    end

    def query
      Rectify::Query.merge(
        OrganizationPublishedParticipatoryProcesses.new(@organization),
        PrioritizedParticipatoryProcesses.new
      ).query
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
decidim-core-0.5.1 app/queries/decidim/organization_prioritized_participatory_processes.rb
decidim-0.5.1 decidim-core/app/queries/decidim/organization_prioritized_participatory_processes.rb
decidim-core-0.5.0 app/queries/decidim/organization_prioritized_participatory_processes.rb
decidim-0.5.0 decidim-core/app/queries/decidim/organization_prioritized_participatory_processes.rb
decidim-core-0.4.4 app/queries/decidim/organization_prioritized_participatory_processes.rb