Class: Mongoid::Changeable::Anything Private
- Inherits:
-
Object
- Object
- Mongoid::Changeable::Anything
- 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
-
#==(_other) ⇒ true
private
Anythingobjects are always equal to everything.
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.
247 248 249 |
# File 'lib/mongoid/changeable.rb', line 247 def ==(_other) true end |