Sha256: 269af26aa889d613736c523b4e7d1447237b9871c4d6d7ab39d77a02a5b2b5dd
Contents?: true
Size: 564 Bytes
Versions: 7
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 < Rectify::Query def initialize(organization, user = nil) @organization = organization @user = user end def query Rectify::Query.merge( OrganizationConferences.new(@organization), VisibleConferences.new(@user), PublishedConferences.new ).query.order(start_date: :desc) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems