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

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

Overview

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

Instance Method Summary collapse

Methods included from HasUploadValidations

#maximum_avatar_size, #maximum_upload_size

Methods included from TranslatableAttributes

#default_locale?

Instance Method Details

#highlighted_scopeObject


38
39
40
# File 'decidim-consultations/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