mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #20892 from zoltankiss/make-params-method-returns-consistent
Standardize `ActionController::Parameters#to_unsafe_h` return value
This commit is contained in:
commit
094571b46d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue