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(id:) ⇒ Object
18 19 20 |
# File 'lib/decidim/api/meetings_type.rb', line 18 def meeting(id:) Decidim::Core::ComponentFinderBase.new(model_class: Meeting.published.visible).call(object, { id: }, context) 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 |