Sha256: 996b27fefe194318f63d17a450be674667ee894c3ab0977ac08d384778d4a935

Contents?: true

Size: 580 Bytes

Versions: 25

Compression:

Stored size: 580 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Conferences
    # This query class filters public conferences given an organization in a
    # meaningful prioritized order.
    class OrganizationPrioritizedConferences < Decidim::Query
      def initialize(organization, user = nil)
        @organization = organization
        @user = user
      end

      def query
        Decidim::Query.merge(
          OrganizationPublishedConferences.new(@organization, @user),
          PrioritizedConferences.new
        ).query.with_attached_hero_image
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
decidim-conferences-0.29.1 app/queries/decidim/conferences/organization_prioritized_conferences.rb
decidim-conferences-0.28.4 app/queries/decidim/conferences/organization_prioritized_conferences.rb
decidim-conferences-0.27.9 app/queries/decidim/conferences/organization_prioritized_conferences.rb
decidim-conferences-0.29.0 app/queries/decidim/conferences/organization_prioritized_conferences.rb
decidim-conferences-0.28.3 app/queries/decidim/conferences/organization_prioritized_conferences.rb
decidim-conferences-0.27.8 app/queries/decidim/conferences/organization_prioritized_conferences.rb
decidim-conferences-0.29.0.rc4 app/queries/decidim/conferences/organization_prioritized_conferences.rb
decidim-conferences-0.29.0.rc3 app/queries/decidim/conferences/organization_prioritized_conferences.rb
decidim-conferences-0.29.0.rc2 app/queries/decidim/conferences/organization_prioritized_conferences.rb
decidim-conferences-0.29.0.rc1 app/queries/decidim/conferences/organization_prioritized_conferences.rb
decidim-conferences-0.28.2 app/queries/decidim/conferences/organization_prioritized_conferences.rb
decidim-conferences-0.27.7 app/queries/decidim/conferences/organization_prioritized_conferences.rb
decidim-conferences-0.28.1 app/queries/decidim/conferences/organization_prioritized_conferences.rb
decidim-conferences-0.27.6 app/queries/decidim/conferences/organization_prioritized_conferences.rb
decidim-conferences-0.28.0 app/queries/decidim/conferences/organization_prioritized_conferences.rb
decidim-conferences-0.27.5 app/queries/decidim/conferences/organization_prioritized_conferences.rb
decidim-conferences-0.28.0.rc5 app/queries/decidim/conferences/organization_prioritized_conferences.rb
decidim-conferences-0.28.0.rc4 app/queries/decidim/conferences/organization_prioritized_conferences.rb
decidim-conferences-0.27.4 app/queries/decidim/conferences/organization_prioritized_conferences.rb
decidim-conferences-0.27.3 app/queries/decidim/conferences/organization_prioritized_conferences.rb