lib/timber/events/controller_call.rb in timber-2.0.8 vs lib/timber/events/controller_call.rb in timber-2.0.9
- old
+ new
@@ -47,18 +47,10 @@
end
end
def sanitize_params(params)
if params.is_a?(::Hash)
- params.each_with_object({}) do |(k, v), h|
- k = k.to_s.downcase
- case k
- when PASSWORD_NAME
- h[k] = SANITIZED_VALUE
- else
- h[k] = v
- end
- end
+ Util::Hash.sanitize(params, [PASSWORD_NAME])
else
params
end
end
end
\ No newline at end of file