Module: Euston::Projections::MongoHashExtensions

Defined in:
lib/euston-projections/hash.rb

Instance Method Summary collapse

Instance Method Details

#rename_id_to_document_idObject



4
5
6
7
# File 'lib/euston-projections/hash.rb', line 4

def rename_id_to_document_id
  self[:_id] = delete(:id) if include?(:id)
  self
end