class ActionController::Parameters

def ==(other)

permitted flag.
Returns true if another +Parameters+ object contains the same content and
def ==(other)
  if other.respond_to?(:permitted?)
    permitted? == other.permitted? && parameters == other.parameters
  else
    @parameters == other
  end
end