Use transform_values when possible

This commit is contained in:
gregoirenovel 2018-01-16 14:24:11 +01:00
parent b2fe1b856c
commit db8c3030e3

View file

@ -154,12 +154,9 @@ class Dossier < ActiveRecord::Base
end end
def convert_specific_hash_values_to_string(hash_to_convert) def convert_specific_hash_values_to_string(hash_to_convert)
hash = {} hash_to_convert.transform_values do |value|
hash_to_convert.each do |key, value| serialize_value_for_export(value)
value = serialize_value_for_export(value)
hash.store(key, value)
end end
hash
end end
def full_data_strings_array def full_data_strings_array