instance method each_nested_attribute

Ruby on Rails 7.0.10

Since v6.1.7.10

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

each_nested_attribute()

No documentation comment.

Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 912
      def each_nested_attribute
        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 912 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Parameters

Type at least 2 characters to search.

↑↓ navigate · open · esc close