Sha256: d90370ab47f578eadcfc3262bed87303293860d331745d1c084135949d3f952c
Contents?: true
Size: 564 Bytes
Versions: 11
Compression:
Stored size: 564 Bytes
Contents
# frozen_string_literal: true module Decidim module Conferences # This query class filters published conferences given an organization. class OrganizationPublishedConferences < Decidim::Query def initialize(organization, user = nil) @organization = organization @user = user end def query Decidim::Query.merge( OrganizationConferences.new(@organization), VisibleConferences.new(@user), PublishedConferences.new ).query.order(start_date: :desc) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems