Skip to content

Commit ea6e7ff

Browse files
committed
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.
1 parent 424b379 commit ea6e7ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionpack/lib/action_controller/metal/strong_parameters.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def to_h
183183

184184
# Returns an unsafe, unfiltered +Hash+ representation of this parameter.
185185
def to_unsafe_h
186-
@parameters
186+
@parameters.to_h
187187
end
188188
alias_method :to_unsafe_hash, :to_unsafe_h
189189

0 commit comments

Comments
 (0)