Sha256: cb1fb899277a189903b6173fb48e7618e581cc5de6fb6f650a3347425e846136

Contents?: true

Size: 560 Bytes

Versions: 25

Compression:

Stored size: 560 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ParticipatoryProcesses
    # This query class filters published processes of a participatory process group
    class GroupPublishedParticipatoryProcesses < Decidim::Query
      def initialize(group, user = nil)
        @group = group
        @user = user
      end

      def query
        Decidim::Query.merge(
          GroupParticipatoryProcesses.new(@group),
          VisibleParticipatoryProcesses.new(@user),
          PublishedParticipatoryProcesses.new
        ).query
      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/group_published_participatory_processes.rb
decidim-participatory_processes-0.27.1 app/queries/decidim/participatory_processes/group_published_participatory_processes.rb
decidim-participatory_processes-0.27.0 app/queries/decidim/participatory_processes/group_published_participatory_processes.rb
decidim-participatory_processes-0.27.0.rc2 app/queries/decidim/participatory_processes/group_published_participatory_processes.rb
decidim-participatory_processes-0.27.0.rc1 app/queries/decidim/participatory_processes/group_published_participatory_processes.rb