Class: Decidim::Meetings::MeetingsType

Inherits:
Api::Types::BaseObject
  • Object
show all
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

#meetingsObject



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

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