X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9d1876405f50e009b686bce51c2469a52d2f79ca..788ecdf8085f5e69cd3dc960f510b49f11432cb3:/services/api/lib/tasks/config_check.rake?ds=sidebyside diff --git a/services/api/lib/tasks/config_check.rake b/services/api/lib/tasks/config_check.rake index c421101442..1b386556e6 100644 --- a/services/api/lib/tasks/config_check.rake +++ b/services/api/lib/tasks/config_check.rake @@ -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