This part used the code we deleted in order to make it easier to refactor the rest of the translatable models. Now we add the code back.
13 lines
271 B
Ruby
13 lines
271 B
Ruby
module Translatable
|
|
extend ActiveSupport::Concern
|
|
|
|
private
|
|
|
|
def translation_params(resource_model)
|
|
{
|
|
translations_attributes: [:id, :_destroy, :locale] +
|
|
resource_model.translated_attribute_names
|
|
}
|
|
end
|
|
end
|