method
to_unsafe_h
v5.0.0.1 -
Show latest stable
- Class:
ActionController::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"}