Sha256: 2131e4166296f536d22cc4b10e7cae40b052204e98855064482589092ee805cb
Contents?: true
Size: 553 Bytes
Versions: 25
Compression:
Stored size: 553 Bytes
Contents
# frozen_string_literal: true module Decidim module Assemblies # This query class filters published assemblies given an organization. class OrganizationPublishedAssemblies < Rectify::Query def initialize(organization, user = nil) @organization = organization @user = user end def query Rectify::Query.merge( OrganizationAssemblies.new(@organization), PublishedAssemblies.new, VisibleAssemblies.new(@user) ).query.order(weight: :asc) end end end end
Version data entries
25 entries across 25 versions & 1 rubygems