Sha256: ec2ffd95178a8e0ce12e23766ab3e06d04b2a69ebed0985dc99ba76c408350b0

Contents?: true

Size: 450 Bytes

Versions: 25

Compression:

Stored size: 450 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ParticipatoryProcesses
    # This query class filters participatory process groups given an organization.
    class OrganizationPromotedParticipatoryProcessGroups < Decidim::Query
      def initialize(organization)
        @organization = organization
      end

      def query
        PromotedParticipatoryProcessGroups.new.query.where(organization: @organization)
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.29.1 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.28.4 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.27.9 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.29.0 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.28.3 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.27.8 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.29.0.rc4 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.29.0.rc3 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.29.0.rc2 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.29.0.rc1 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.28.2 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.27.7 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.28.1 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.27.6 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.28.0 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.27.5 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.28.0.rc5 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.28.0.rc4 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.27.4 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.27.3 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb