app/forms/decidim/consultations/admin/response_form.rb in decidim-consultations-0.19.1 vs app/forms/decidim/consultations/admin/response_form.rb in decidim-consultations-0.20.0

- old
+ new

@@ -8,11 +8,16 @@ include TranslatableAttributes mimic :response translatable_attribute :title, String + attribute :decidim_consultations_response_group_id, Integer validates :title, translatable_presence: true + + def response_group + ResponseGroup.find_by(id: decidim_consultations_response_group_id) if decidim_consultations_response_group_id + end end end end end