Class: Decidim::Conferences::ConferenceProgramMeetings

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

Overview

This query class filters meetings for component and day

Instance Method Summary collapse

Constructor Details

#initialize(component, user = nil) ⇒ ConferenceProgramMeetings

Returns a new instance of ConferenceProgramMeetings.


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

def initialize(component, user = nil)
  @component = component
  @user = user
end

Instance Method Details

#queryObject


12
13
14
# File 'decidim-conferences/app/queries/decidim/conferences/conference_program_meetings.rb', line 12

def query
  Decidim::Meetings::Meeting.where(component: @component).visible_meeting_for(@user)
end