Displays an explicit message when trying to start Redmine with an old session_store.rb.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9566 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-04-28 11:48:34 +00:00
parent 10c0634413
commit 52986e8cd1
1 changed files with 13 additions and 0 deletions

View File

@ -88,3 +88,16 @@ module ActionController
end
end
end
module ActionController
class Base
# Displays an explicit message instead of a NoMethodError exception
# when trying to start Redmine with an old session_store.rb
# TODO: remove it in a later version
def self.session=(*args)
$stderr.puts "Please remove config/session_store.rb and run `rake generate_secret_token`.\n" +
"Setting the session secret with ActionController.session= is no longer supported in Rails 3."
exit 1
end
end
end