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

Inherits:
Form
  • Object
show all
Includes:
TranslatableAttributes
Defined in:
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

Instance Method Details

#signature_dates_required?Boolean

Returns:

  • (Boolean)


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

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