Files
nairobi/app/controllers/concerns/translatable.rb
Javi Martín 87484015da Update information texts translatable fields
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.
2018-11-05 18:20:50 +01:00

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