Address code review comment
parent
81f877ad09
commit
5f43ec0a79
|
@ -107,7 +107,7 @@ module ResponseDataHelper
|
||||||
reflection
|
reflection
|
||||||
end
|
end
|
||||||
|
|
||||||
obj_attribute_names = obj.attributes.transform_keys { |k| k.to_sym }.keys
|
obj_attribute_names = obj.attributes.transform_keys(&:to_sym).keys
|
||||||
|
|
||||||
data.except(*obj_attribute_names).each do |k, v|
|
data.except(*obj_attribute_names).each do |k, v|
|
||||||
association = klass.reflect_on_association(k)
|
association = klass.reflect_on_association(k)
|
||||||
|
|
Loading…
Reference in New Issue