Class: Mongoid::Changeable::Anything Private

Inherits:
Object
  • Object
show all
Defined in:
lib/mongoid/changeable.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

A class for representing the default value that an attribute was changed from or to.

Instance Method Summary collapse

Instance Method Details

#==(_other) ⇒ true

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Anything objects are always equal to everything. This simplifies the logic for asking whether an attribute has changed or not. If the from or to value is a Anything (because it was not explicitly given), any comparison with it will suggest the value has not changed.

Parameters:

  • _other (Object)

    The object being compared with this object.

Returns:

  • (true)

    Always returns true.



247
248
249
# File 'lib/mongoid/changeable.rb', line 247

def ==(_other)
  true
end