Class: Decidim::Meetings::Admin::MeetingForm

Inherits:
Form
  • Object
show all
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

#categoryObject



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

#featureObject



47
48
49
# File 'decidim-meetings/app/forms/decidim/meetings/admin/meeting_form.rb', line 47

def feature
  current_feature
end

#process_scopeObject



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

#scopeObject



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