Sha256: f3954e88f97c1a7a00e16240266be0ea88ffa96ea8a8c63d1a0e7cec699101d3
Contents?: true
Size: 612 Bytes
Versions: 25
Compression:
Stored size: 612 Bytes
Contents
# frozen_string_literal: true module Decidim module ParticipatoryProcesses # This query class filters published processes given an organization. class OrganizationPublishedParticipatoryProcesses < Decidim::Query def initialize(organization, user = nil) @organization = organization @user = user end def query Decidim::Query.merge( OrganizationParticipatoryProcesses.new(@organization), VisibleParticipatoryProcesses.new(@user), PublishedParticipatoryProcesses.new ).query.order(weight: :asc) end end end end
Version data entries
25 entries across 25 versions & 1 rubygems