Class: Decidim::Debates::Admin::CloseDebateForm

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

Overview

This class holds a Form to close debates from Decidim's admin views.

Instance Method Summary collapse

Methods included from TranslatableAttributes

#default_locale?

Instance Method Details

#closed_atObject


22
23
24
# File 'decidim-debates/app/forms/decidim/debates/admin/close_debate_form.rb', line 22

def closed_at
  debate&.closed_at || Time.current
end