50
51
52
53
54
|
# File 'lib/based_uuid/has_based_uuid.rb', line 50
def based_uuid(prefix: true)
raise ArgumentError, "UUID is empty" if _uuid_column_value.blank?
BasedUUID.encode(uuid: _uuid_column_value, prefix: prefix ? self.class._based_uuid_prefix : nil)
end
|