app/models/decidim/consultations/response_group.rb in decidim-consultations-0.22.0 vs app/models/decidim/consultations/response_group.rb in decidim-consultations-0.23.0
- old
+ new
@@ -1,9 +1,13 @@
# frozen_string_literal: true
module Decidim
module Consultations
class ResponseGroup < ApplicationRecord
+ include Decidim::TranslatableResource
+
+ translatable_fields :title
+
belongs_to :question,
foreign_key: "decidim_consultations_questions_id",
class_name: "Decidim::Consultations::Question",
counter_cache: :response_groups_count,
inverse_of: :response_groups