1
0
Fork 0
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:
Rafael Mendonça França 2015-07-15 22:59:45 -03:00
commit 094571b46d

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