instance method
each_nested_attribute
Ruby on Rails edge
Since v6.1.7.10Signature
each_nested_attribute(&block)
No documentation comment.
Parameters
-
blockblock
Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 1182
def each_nested_attribute(&block)
hash = self.class.new
self.each { |k, v| hash[k] = yield v if Parameters.nested_attribute?(k, v) }
hash
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 1182
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters