app/forms/decidim/meetings/close_meeting_form.rb in decidim-meetings-0.26.10 vs app/forms/decidim/meetings/close_meeting_form.rb in decidim-meetings-0.27.0.rc1
- old
+ new
@@ -5,10 +5,10 @@
# This class holds a Form to close a meeting from Decidim's public views.
class CloseMeetingForm < Decidim::Form
attribute :closing_report, String
attribute :proposal_ids, Array[Integer]
attribute :proposals
- attribute :closed_at, Decidim::Attributes::TimeWithZone, default: ->(_form, _attribute) { Time.current }
+ attribute :closed_at, Decidim::Attributes::TimeWithZone, default: -> { Time.current }
attribute :attendees_count, Integer, default: 0
validates :closing_report, presence: true
validates :attendees_count,
presence: true,