app/forms/decidim/accountability/admin/result_form.rb in decidim-accountability-0.11.2 vs app/forms/decidim/accountability/admin/result_form.rb in decidim-accountability-0.12.0.pre
- old
+ new
@@ -18,12 +18,13 @@
attribute :start_date, Date
attribute :end_date, Date
attribute :progress, Float
attribute :decidim_accountability_status_id, Integer
attribute :parent_id, Integer
+ attribute :external_id, String
+ attribute :weight, Float
validates :title, translatable_presence: true
- validates :description, translatable_presence: true
validates :scope, presence: true, if: ->(form) { form.decidim_scope_id.present? }
validates :category, presence: true, if: ->(form) { form.decidim_category_id.present? }
validates :parent, presence: true, if: ->(form) { form.parent_id.present? }