13647: Move ...Controller.from_config_or_db to KeepService.all.
[arvados.git] / services / api / app / controllers / application_controller.rb
index b23515dda4528b1e7f44433a8fcfa006d7ee3486..369043e780863a4f84c4c9667fda9bdff2597afb 100644 (file)
@@ -433,7 +433,7 @@ class ApplicationController < ActionController::Base
   end
 
   def disable_api_methods
-    if Rails.configuration.API.DisabledAPIs.include?(controller_name + "." + action_name)
+    if Rails.configuration.API.DisabledAPIs[controller_name + "." + action_name]
       send_error("Disabled", status: 404)
     end
   end