Sha256: 759d63ded4739a3ee3b52a6345e8d662bef45fbc2b6389ac5738613233ee17c4

Contents?: true

Size: 432 Bytes

Versions: 25

Compression:

Stored size: 432 Bytes

Contents

# frozen_string_literal: true

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

      def query
        Decidim::ParticipatoryProcessGroup.where(organization: @organization)
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.27.2 app/queries/decidim/participatory_processes/organization_participatory_process_groups.rb
decidim-participatory_processes-0.27.1 app/queries/decidim/participatory_processes/organization_participatory_process_groups.rb
decidim-participatory_processes-0.27.0 app/queries/decidim/participatory_processes/organization_participatory_process_groups.rb
decidim-participatory_processes-0.27.0.rc2 app/queries/decidim/participatory_processes/organization_participatory_process_groups.rb
decidim-participatory_processes-0.27.0.rc1 app/queries/decidim/participatory_processes/organization_participatory_process_groups.rb