Class: Decidim::Meetings::MeetingsType
- Inherits:
-
Api::Types::BaseObject
- Object
- Api::Types::BaseObject
- Decidim::Meetings::MeetingsType
- Defined in:
- lib/decidim/api/meetings_type.rb
Instance Method Summary collapse
Instance Method Details
#meeting(**args) ⇒ Object
21 22 23 |
# File 'lib/decidim/api/meetings_type.rb', line 21 def meeting(**args) Meeting.published.visible.where(component: object).find_by(id: args[:id]) end |
#meetings ⇒ Object
13 14 15 |
# File 'lib/decidim/api/meetings_type.rb', line 13 def meetings Meeting.published.visible.where(component: object).includes(:component) end |