X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/540e56a9ccc13f9c974b2eb49ce050425281d414..7b37f4cb62fca5fec3d3d41eacf4601595519c4a:/app/controllers/application_controller.rb?ds=inline diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 619ef981a..2918354ff 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,9 +1,12 @@ -# Filters added to this controller will be run for all controllers in the application. -# Likewise, all the methods added will be available for all controllers. class ApplicationController < ActionController::Base + protect_from_forgery + if STATUS == :database_readonly or STATUS == :database_offline session :off + + def self.cache_sweeper(*sweepers) + end end def authorize_web