Flowdock
method

to_unsafe_h

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 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.