Class: Decidim::Consultations::Admin::ConsultationForm

Inherits:
Form
  • Object
show all
Includes:
HasUploadValidations, TranslatableAttributes
Defined in:
app/forms/decidim/consultations/admin/consultation_form.rb

Overview

A form object used to create consultations from the admin dashboard.

Instance Method Summary collapse

Instance Method Details

#highlighted_scopeObject



38
39
40
# File 'app/forms/decidim/consultations/admin/consultation_form.rb', line 38

def highlighted_scope
  @highlighted_scope ||= current_organization.scopes.find_by(id: decidim_highlighted_scope_id)
end