Class: Decidim::Meetings::Admin::MeetingForm
- Inherits:
-
Form
- Object
- Form
- Decidim::Meetings::Admin::MeetingForm
- Includes:
- TranslatableAttributes
- Defined in:
- decidim-meetings/app/forms/decidim/meetings/admin/meeting_form.rb
Overview
This class holds a Form to create/update meetings from Decidim’s admin panel.
Instance Method Summary collapse
Instance Method Details
#category ⇒ Object
42 43 44 45 |
# File 'decidim-meetings/app/forms/decidim/meetings/admin/meeting_form.rb', line 42 def category return unless current_feature @category ||= current_feature.categories.where(id: decidim_category_id).first end |
#feature ⇒ Object
47 48 49 |
# File 'decidim-meetings/app/forms/decidim/meetings/admin/meeting_form.rb', line 47 def feature current_feature end |
#process_scope ⇒ Object
33 34 35 |
# File 'decidim-meetings/app/forms/decidim/meetings/admin/meeting_form.rb', line 33 def process_scope current_feature.participatory_process.scope end |
#scope ⇒ Object
37 38 39 40 |
# File 'decidim-meetings/app/forms/decidim/meetings/admin/meeting_form.rb', line 37 def scope return unless current_feature @scope ||= process_scope || current_feature.scopes.where(id: decidim_scope_id).first end |