Address code review comment

GSoC/Meterpreter_Web_Console
James Barnett 2018-12-18 16:00:01 -06:00
parent 81f877ad09
commit 5f43ec0a79
No known key found for this signature in database
GPG Key ID: 647983861A4EC5EA
1 changed files with 1 additions and 1 deletions

View File

@ -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)