Sha256: 71efb7d841ec24808d3957fa3e277cd0389810825e1c54f7335f9176b5489307

Contents?: true

Size: 450 Bytes

Versions: 12

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 < Rectify::Query
      def initialize(organization)
        @organization = organization
      end

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.26.10 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.26.9 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.26.8 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.26.7 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.26.5 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.26.4 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.26.3 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.26.2 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.26.1 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.26.0 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.26.0.rc2 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb
decidim-participatory_processes-0.26.0.rc1 app/queries/decidim/participatory_processes/organization_promoted_participatory_process_groups.rb