Merge branch '16387-batch-update-deactivated-user'
[arvados.git] / services / api / lib / refresh_permission_view.rb
index e7fa263c7e29ffb8773fc6ff541b16682fc18aa8..5d6081f262b25756dd7e3fcdeec42ae762c4687f 100644 (file)
@@ -12,8 +12,8 @@ def do_refresh_permission_view
 end
 
 def refresh_permission_view(async=false)
-  if async and Rails.configuration.API["AsyncPermissionsUpdateInterval"] > 0
-    exp = Rails.configuration.API["AsyncPermissionsUpdateInterval"].seconds
+  if async and Rails.configuration.API.AsyncPermissionsUpdateInterval > 0
+    exp = Rails.configuration.API.AsyncPermissionsUpdateInterval.seconds
     need = false
     Rails.cache.fetch('AsyncRefreshPermissionView', expires_in: exp) do
       need = true