Skip to content

Commit 094571b

Browse files
committed
Merge pull request rails#20892 from zoltankiss/make-params-method-returns-consistent
Standardize `ActionController::Parameters#to_unsafe_h` return value
2 parents 424b379 + ea6e7ff commit 094571b

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)