Arvbox sets PATH, GEM_HOME and GEM_PATH in common.sh. refs #10410
[arvados.git] / services / api / app / models / arvados_model.rb
index 7d1c30cdaf63b418086a265c5129a103d168cb67..18d5647cc929e760a72ed48ed709a9d18b8da8a3 100644 (file)
@@ -530,7 +530,7 @@ class ArvadosModel < ActiveRecord::Base
   end
 
   def self.uuid_like_pattern
-    "_____-#{uuid_prefix}-_______________"
+    "#{Rails.configuration.uuid_prefix}-#{uuid_prefix}-_______________"
   end
 
   def self.uuid_regex
@@ -636,7 +636,7 @@ class ArvadosModel < ActiveRecord::Base
   end
 
   def log_destroy
-    log_change('destroy') do |log|
+    log_change('delete') do |log|
       log.fill_properties('old', etag(@old_attributes), @old_logged_attributes)
       log.update_to nil
     end