Class: Mongoid::Changeable::Anything Private
Do not use. This class is for internal use only.
| Relationships & Source Files | |
| Inherits: | Object |
| Defined in: | lib/mongoid/changeable.rb |
Overview
A class for representing the default value that an attribute was changed from or to.
Instance Method Summary
-
#==(_other) ⇒ true
Internal use only
Anythingobjects are always equal to everything.
Instance Method Details
#==(_other) ⇒ true
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.
# File 'lib/mongoid/changeable.rb', line 247
def ==(_other) true end