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

Version Path
decidim-conferences-0.27.9 app/queries/decidim/conferences/organization_published_conferences.rb
decidim-conferences-0.27.8 app/queries/decidim/conferences/organization_published_conferences.rb
decidim-conferences-0.27.7 app/queries/decidim/conferences/organization_published_conferences.rb
decidim-conferences-0.27.6 app/queries/decidim/conferences/organization_published_conferences.rb
decidim-conferences-0.27.5 app/queries/decidim/conferences/organization_published_conferences.rb
decidim-conferences-0.27.4 app/queries/decidim/conferences/organization_published_conferences.rb
decidim-conferences-0.27.3 app/queries/decidim/conferences/organization_published_conferences.rb
decidim-conferences-0.27.2 app/queries/decidim/conferences/organization_published_conferences.rb
decidim-conferences-0.27.1 app/queries/decidim/conferences/organization_published_conferences.rb
decidim-conferences-0.27.0 app/queries/decidim/conferences/organization_published_conferences.rb
decidim-conferences-0.27.0.rc2 app/queries/decidim/conferences/organization_published_conferences.rb