Class: RailsArchiver::Archiver::IDHash
- Inherits:
-
Hash
- Object
- Hash
- RailsArchiver::Archiver::IDHash
- Defined in:
- lib/rails-archiver/archiver.rb
Overview
Hash which determines equality solely based on the id key.
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
13 14 15 |
# File 'lib/rails-archiver/archiver.rb', line 13 def ==(other) self[:id] == other[:id] end |