diff --git a/lib/devise/parameter_sanitizer.rb b/lib/devise/parameter_sanitizer.rb index 5eba0632..4fcf6971 100644 --- a/lib/devise/parameter_sanitizer.rb +++ b/lib/devise/parameter_sanitizer.rb @@ -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)