Method: ActionController::Parameters#==

Defined in:
actionpack/lib/action_controller/metal/strong_parameters.rb

#==(other) ⇒ Object

Returns true if another ‘Parameters` object contains the same content and permitted flag.



301
302
303
304
305
306
307
# File 'actionpack/lib/action_controller/metal/strong_parameters.rb', line 301

def ==(other)
  if other.respond_to?(:permitted?)
    permitted? == other.permitted? && parameters == other.parameters
  else
    super
  end
end