1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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.
This commit is contained in:
Zoltan Kiss 2015-07-15 19:16:58 -05:00
parent 424b379c73
commit ea6e7ffd78

View file

@ -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