app/forms/decidim/consultations/admin/consultation_form.rb in decidim-consultations-0.24.3 vs app/forms/decidim/consultations/admin/consultation_form.rb in decidim-consultations-0.25.0.rc1
- old
+ new
@@ -13,13 +13,13 @@
translatable_attribute :title, String
translatable_attribute :subtitle, String
translatable_attribute :description, String
attribute :slug, String
attribute :banner_image
- attribute :remove_banner_image
+ attribute :remove_banner_image, Boolean, default: false
attribute :introductory_video_url, String
attribute :introductory_image, String
- attribute :remove_introductory_image
+ attribute :remove_introductory_image, Boolean, default: false
attribute :decidim_highlighted_scope_id, Integer
attribute :start_voting_date, Decidim::Attributes::LocalizedDate
attribute :end_voting_date, Decidim::Attributes::LocalizedDate
validates :slug, presence: true, format: { with: Decidim::Consultation.slug_format }