From ea6e7ffd7891f4ccdccfee00647ef3576888eaba Mon Sep 17 00:00:00 2001 From: Zoltan Kiss Date: Wed, 15 Jul 2015 19:16:58 -0500 Subject: Standardize `ActionController::Parameters#to_unsafe_h` return value `ActionController::Parameters#to_h` returns a hash, so lets have `ActionController::Parameters#to_unsafe_h` return a hash instead of an `ActiveSupport::HashWithIndifferentAccess` for consistency. --- actionpack/lib/action_controller/metal/strong_parameters.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/metal/strong_parameters.rb') diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb index 3f5e8c53a8..4c979ad4ec 100644 --- a/actionpack/lib/action_controller/metal/strong_parameters.rb +++ b/actionpack/lib/action_controller/metal/strong_parameters.rb @@ -183,7 +183,7 @@ module ActionController # Returns an unsafe, unfiltered +Hash+ representation of this parameter. def to_unsafe_h - @parameters + @parameters.to_h end alias_method :to_unsafe_hash, :to_unsafe_h -- cgit v1.2.3