Module: Uuidable

Extended by:
ActiveSupport::Concern
Included in:
Aliquot, Ont::Flowcell, Ont::Instrument, Ont::Library, Ont::Pool, Ont::Run, Pacbio::Library, Pacbio::Plate, Pacbio::Run, Pacbio::Well
Defined in:
app/models/concerns/uuidable.rb

Overview

Adds a uuid to model

Instance Method Summary collapse

Instance Method Details

#add_uuidObject



11
12
13
# File 'app/models/concerns/uuidable.rb', line 11

def add_uuid
  self.uuid = SecureRandom.uuid
end