Method: ActionController::Parameters.nested_attribute?
- Defined in:
- lib/action_controller/metal/strong_parameters.rb
.nested_attribute?(key, value) ⇒ Boolean
:nodoc:
266 267 268 |
# File 'lib/action_controller/metal/strong_parameters.rb', line 266 def nested_attribute?(key, value) # :nodoc: /\A-?\d+\z/.match?(key) && (value.is_a?(Hash) || value.is_a?(Parameters)) end |