Sha256: c6caf99e194ad00497b12bbe6348e62ac081e98ee40b1f921e27098b69083f87

Contents?: true

Size: 378 Bytes

Versions: 12

Compression:

Stored size: 378 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)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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