Skip to content

Commit

Permalink
Standardize ActionController::Parameters#to_unsafe_h return value
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
zoltankiss committed Jul 16, 2015
1 parent 424b379 commit ea6e7ff
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -183,7 +183,7 @@ def to_h

# 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

Expand Down

0 comments on commit ea6e7ff

Please sign in to comment.