Class: Decidim::Conferences::ConferenceProgramMeetings
- Inherits:
 - 
      Query
      
        
- Object
 - Query
 - Decidim::Conferences::ConferenceProgramMeetings
 
 
- Defined in:
 - app/queries/decidim/conferences/conference_program_meetings.rb
 
Overview
This query class filters meetings for component and day
Instance Method Summary collapse
- 
  
    
      #initialize(component, user = nil)  ⇒ ConferenceProgramMeetings 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ConferenceProgramMeetings.
 - #query ⇒ Object
 
Constructor Details
#initialize(component, user = nil) ⇒ ConferenceProgramMeetings
Returns a new instance of ConferenceProgramMeetings.
      7 8 9 10  | 
    
      # File 'app/queries/decidim/conferences/conference_program_meetings.rb', line 7 def initialize(component, user = nil) @component = component @user = user end  | 
  
Instance Method Details
#query ⇒ Object
      12 13 14  | 
    
      # File 'app/queries/decidim/conferences/conference_program_meetings.rb', line 12 def query Decidim::Meetings::Meeting.where(component: @component).visible_for(@user) end  |