Sha256: 2f67c5493a88bd4f139fb557c899e24ddd3d7c1a092142436d75a06cf6fd0018

Contents?: true

Size: 417 Bytes

Versions: 13

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Conferences
    # This query class filters all conferences given an organization.
    class OrganizationConferences < Decidim::Query
      def initialize(organization)
        @organization = organization
      end

      def query
        Decidim::Conference.where(organization: @organization).order(weight: :asc, start_date: :desc)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-conferences-0.29.1 app/queries/decidim/conferences/organization_conferences.rb
decidim-conferences-0.28.4 app/queries/decidim/conferences/organization_conferences.rb
decidim-conferences-0.29.0 app/queries/decidim/conferences/organization_conferences.rb
decidim-conferences-0.28.3 app/queries/decidim/conferences/organization_conferences.rb
decidim-conferences-0.29.0.rc4 app/queries/decidim/conferences/organization_conferences.rb
decidim-conferences-0.29.0.rc3 app/queries/decidim/conferences/organization_conferences.rb
decidim-conferences-0.29.0.rc2 app/queries/decidim/conferences/organization_conferences.rb
decidim-conferences-0.29.0.rc1 app/queries/decidim/conferences/organization_conferences.rb
decidim-conferences-0.28.2 app/queries/decidim/conferences/organization_conferences.rb
decidim-conferences-0.28.1 app/queries/decidim/conferences/organization_conferences.rb
decidim-conferences-0.28.0 app/queries/decidim/conferences/organization_conferences.rb
decidim-conferences-0.28.0.rc5 app/queries/decidim/conferences/organization_conferences.rb
decidim-conferences-0.28.0.rc4 app/queries/decidim/conferences/organization_conferences.rb