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:
parent
10c0634413
commit
52986e8cd1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue