app/forms/decidim/consultations/admin/consultation_form.rb in decidim-consultations-0.14.4 vs app/forms/decidim/consultations/admin/consultation_form.rb in decidim-consultations-0.15.0

- old
+ new

@@ -17,11 +17,11 @@ attribute :remove_banner_image attribute :introductory_video_url, String attribute :introductory_image, String attribute :remove_introductory_image attribute :decidim_highlighted_scope_id, Integer - attribute :start_voting_date, Date - attribute :end_voting_date, Date + attribute :start_voting_date, Decidim::Attributes::LocalizedDate + attribute :end_voting_date, Decidim::Attributes::LocalizedDate validates :slug, presence: true, format: { with: Decidim::Consultation.slug_format } validates :title, :subtitle, :description, translatable_presence: true validates :decidim_highlighted_scope_id, presence: true validates :start_voting_date, presence: true, date: { before_or_equal_to: :end_voting_date }