Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- Defined in:
- lib/cache_money.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#<=>(other) ⇒ Object
36 37 38 39 40 41 42 |
# File 'lib/cache_money.rb', line 36 def <=>(other) if self.id == other.id then 0 else self.id < other.id ? -1 : 1 end end |