Move transform_keys calls directly to #process_params methods

This commit is contained in:
gregoirenovel 2018-03-19 15:41:20 +01:00
parent a3fd271b00
commit 5d188c191d
5 changed files with 22 additions and 22 deletions

View file

@ -9,7 +9,7 @@ class ApiEntreprise::RNAAdapter < ApiEntreprise::Adapter
if data_source[:association][:id].present?
params = data_source[:association].slice(*attr_to_fetch)
params[:rna] = data_source[:association][:id]
params
params.transform_keys { |k| :"association_#{k}" }
else
{}
end