method

to_unsafe_h

Importance_1
v5.0.0.1 - Show latest stable - 0 notes - Class: Parameters
to_unsafe_h() public

Returns an unsafe, unfiltered ActiveSupport::HashWithIndifferentAccess representation of this parameter.

params = ActionController::Parameters.new({
  name: 'Senjougahara Hitagi',
  oddity: 'Heavy stone crab'
})
params.to_unsafe_h
# => {"name"=>"Senjougahara Hitagi", "oddity" => "Heavy stone crab"}
Show source
Register or log in to add new notes.