Make database offline mode work
This commit is contained in:
parent
cd12896694
commit
2c837d896d
2 changed files with 20 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue