Class: Decidim::Meetings::MeetingsType

Inherits:
Api::Types::BaseObject show all
Defined in:
decidim-meetings/lib/decidim/api/meetings_type.rb

Instance Method Summary collapse

Instance Method Details

#meeting(**args) ⇒ Object


21
22
23
# File 'decidim-meetings/lib/decidim/api/meetings_type.rb', line 21

def meeting(**args)
  Meeting.published.visible.where(component: object).find_by(id: args[:id])
end

#meetingsObject


13
14
15
# File 'decidim-meetings/lib/decidim/api/meetings_type.rb', line 13

def meetings
  Meeting.published.visible.where(component: object).includes(:component)
end