Method: MmUsesUuid#find_new_uuid

Defined in:
lib/mm_uses_uuid.rb

#find_new_uuid(options = {}) ⇒ Object



116
117
118
119
120
121
122
123
124
125
126
127
128
# File 'lib/mm_uses_uuid.rb', line 116

def find_new_uuid(options = {})
  
  options = {force_safe: false}.merge(options)
    
  if not options[:ensure_unique_in]
    @_id = make_uuid
    #puts "assuming UUID #{@_id} is available"
    return
  else
    find_new_uuid_safely(options[:ensure_unique_in])
  end

end