Class: Decidim::Meetings::MeetingsType
- Inherits:
-
Core::ComponentType
- Object
- Core::ComponentType
- Decidim::Meetings::MeetingsType
- Defined in:
- lib/decidim/api/meetings_type.rb
Instance Method Summary collapse
Instance Method Details
#meeting(**args) ⇒ Object
18 19 20 |
# File 'lib/decidim/api/meetings_type.rb', line 18 def meeting(**args) Meeting.published.visible.where(component: object).find_by(id: args[:id]) end |
#meetings ⇒ Object
14 15 16 |
# File 'lib/decidim/api/meetings_type.rb', line 14 def meetings Meeting.published.visible.where(component: object).includes(:component) end |