From 9eb0768cb9a416a08326d91db3063c64238ee333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Thu, 31 Oct 2013 14:39:52 +0100 Subject: [PATCH] Add Rails 4 related todo --- lib/devise/parameter_sanitizer.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/devise/parameter_sanitizer.rb b/lib/devise/parameter_sanitizer.rb index 6e4bf074..7b10cf55 100644 --- a/lib/devise/parameter_sanitizer.rb +++ b/lib/devise/parameter_sanitizer.rb @@ -60,6 +60,8 @@ module Devise private + # TODO: We do need to flatten so it works with strong_parameters + # gem. We should drop it once we move to Rails 4 only support. def permit(keys) default_params.permit(*Array(keys)) end