]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Use before_validation with :on rather than before_validation_on_xxx
[rails.git] / app / controllers / application_controller.rb
index 619ef981a61ba8260248368f681b04a6136e246a..2918354ffa423c009cedd10040e21a4a7509140e 100644 (file)
@@ -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