instance method
to_unsafe_h
Ruby on Rails 7.0.10
Since v4.2.9Signature
to_unsafe_h()
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"}
Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 349
def to_unsafe_h
convert_parameters_to_hashes(@parameters, :to_unsafe_h)
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 349
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters