Merge branch '17161-doc-system-root-token'
[arvados.git] / services / api / lib / has_uuid.rb
index 60db53d5e687440f4297b0ea29fc5893e52cf68c..2074566941fec7c6a79903df712b82541e9a5853 100644 (file)
@@ -30,7 +30,7 @@ module HasUuid
       Digest::MD5.hexdigest(self.to_s).to_i(16).to_s(36)[-5..-1]
     end
     def generate_uuid
-      [Server::Application.config.uuid_prefix,
+      [Rails.configuration.ClusterID,
        self.uuid_prefix,
        rand(2**256).to_s(36)[-15..-1]].
         join '-'