Merge branch '16387-batch-update-deactivated-user'
[arvados.git] / services / api / lib / sweep_trashed_objects.rb
index 6ade1fc567b9d404dd97d6b5b91a6634b5f17eef..8613c749cf247c6c11f309c4d43cddc544e99b4f 100644 (file)
@@ -55,8 +55,8 @@ module SweepTrashedObjects
   end
 
   def self.sweep_if_stale
-    return if Rails.configuration.Collections["TrashSweepInterval"] <= 0
-    exp = Rails.configuration.Collections["TrashSweepInterval"].seconds
+    return if Rails.configuration.Collections.TrashSweepInterval <= 0
+    exp = Rails.configuration.Collections.TrashSweepInterval.seconds
     need = false
     Rails.cache.fetch('SweepTrashedObjects', expires_in: exp) do
       need = true