Class: Decidim::Conferences::OrganizationConferences

Inherits:
Rectify::Query
  • Object
show all
Defined in:
decidim-conferences/app/queries/decidim/conferences/organization_conferences.rb

Overview

This query class filters all conferences given an organization.

Instance Method Summary collapse

Constructor Details

#initialize(organization) ⇒ OrganizationConferences

Returns a new instance of OrganizationConferences.


7
8
9
# File 'decidim-conferences/app/queries/decidim/conferences/organization_conferences.rb', line 7

def initialize(organization)
  @organization = organization
end

Instance Method Details

#queryObject


11
12
13
# File 'decidim-conferences/app/queries/decidim/conferences/organization_conferences.rb', line 11

def query
  Decidim::Conference.where(organization: @organization)
end