diff --git a/app/models/knowledge_base/answer/translation.rb b/app/models/knowledge_base/answer/translation.rb index 0e1dfe7c0..ea275bec4 100644 --- a/app/models/knowledge_base/answer/translation.rb +++ b/app/models/knowledge_base/answer/translation.rb @@ -11,7 +11,8 @@ class KnowledgeBase::Answer::Translation < ApplicationModel belongs_to :kb_locale, class_name: 'KnowledgeBase::Locale', inverse_of: :answer_translations belongs_to :answer, class_name: 'KnowledgeBase::Answer', inverse_of: :translations, touch: true - #belongs_to :updated_by, class_name: 'User', inverse_of: :answer_translations + belongs_to :created_by, class_name: 'User' + belongs_to :updated_by, class_name: 'User' belongs_to :content, class_name: 'KnowledgeBase::Answer::Translation::Content', inverse_of: :translation, dependent: :destroy accepts_nested_attributes_for :content, update_only: true