Merge branch 'origin-3609-arv-run' into master closes #3609
[arvados.git] / services / api / lib / tasks / config_check.rake
index c42110144261dc23b6a6dbaa6c2a65a9aa5a68e2..1b386556e62ca1363e0c31bad1645236687602b0 100644 (file)
@@ -16,8 +16,8 @@ namespace :config do
       end
     end
     # default_trash_lifetime cannot be less than 24 hours
-    if $application_config['default_trash_lifetime'] < 86400 then
-      raise "default_trash_lifetime is %d, must be at least 86400" % $application_config['default_trash_lifetime']
+    if Rails.configuration.default_trash_lifetime < 86400 then
+      raise "default_trash_lifetime is %d, must be at least 86400" % Rails.configuration.default_trash_lifetime
     end
   end
 end