instance method
each_pair
Ruby on Rails 5.1.7
Since v4.2.11.3Signature
each_pair(&block)
Convert all hashes in values into parameters, then yield each pair in the same way as Hash#each_pair.
Parameters
-
blockblock
Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 330
def each_pair(&block)
@parameters.each_pair do |key, value|
yield key, convert_hashes_to_parameters(key, value)
end
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 330
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters