Files
nairobi/app/controllers/concerns/translatable.rb
Javi Martín 00983200d4 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-10-22 16:36:12 +02: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