Sha256: 124938ca2c077519195874899ff8195cb633e3341074ba5d6ae3c766e08ee869
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 < Rectify::Query def initialize(organization, user = nil) @organization = organization @user = user end def query Rectify::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