1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Cast the result of deperecated sanitization calls to a HWIA as well.

This commit is contained in:
Lucas Mazza 2015-12-21 09:57:20 -02:00
parent 8d57a54b2d
commit 6431445846

View file

@ -71,7 +71,7 @@ module Devise
# DEPRECATED: Remove this branch on Devise 4.1.
if respond_to?(action, true)
deprecate_instance_method_sanitization(action)
return send(action)
return cast_to_hash send(action)
end
if permissions.respond_to?(:call)