class ActionController::Parameters

def nested_attribute?(key, value) # :nodoc:

:nodoc:
def nested_attribute?(key, value) # :nodoc:
  /\A-?\d+\z/.match?(key) && (value.is_a?(Hash) || value.is_a?(Parameters))
end