Class: Decidim::Initiatives::Admin::InitiativeAnswerForm

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

Overview

A form object used to manage the initiative answer in the administration panel.

Instance Method Summary collapse

Methods included from TranslatableAttributes

#default_locale?

Instance Method Details

#signature_dates_required?Boolean

Returns:

  • (Boolean)

23
24
25
# File 'decidim-initiatives/app/forms/decidim/initiatives/admin/initiative_answer_form.rb', line 23

def signature_dates_required?
  @signature_dates_required ||= context.initiative.state == "published"
end