Make database offline mode work

This commit is contained in:
Tom Hughes 2011-10-02 17:08:23 +01:00
parent cd12896694
commit 2c837d896d
2 changed files with 20 additions and 3 deletions

View file

@ -3,7 +3,12 @@ class ApplicationController < ActionController::Base
protect_from_forgery
if STATUS == :database_readonly or STATUS == :database_offline
session :off
after_filter :clear_session
wrap_parameters false
def clear_session
session.clear
end
def self.cache_sweeper(*sweepers)
end