Class: Decidim::Meetings::Admin::MeetingAgendaForm

Inherits:
Form
  • Object
show all
Includes:
TranslatableAttributes
Defined in:
decidim-meetings/app/forms/decidim/meetings/admin/meeting_agenda_form.rb

Overview

This class holds a Form to update meeting agenda items

Instance Method Summary collapse

Methods included from TranslatableAttributes

#default_locale?

Instance Method Details

#map_model(model) ⇒ Object


18
19
20
21
22
# File 'decidim-meetings/app/forms/decidim/meetings/admin/meeting_agenda_form.rb', line 18

def map_model(model)
  self.agenda_items = model.agenda_items.first_class.map do |agenda_item|
    MeetingAgendaItemsForm.from_model(agenda_item)
  end
end