method

to_unsafe_h

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: Parameters
to_unsafe_h() public

Returns an unsafe, unfiltered ActiveSupport::HashWithIndifferentAccess representation of the parameters.

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.