diff options
author | José Valim <jose.valim@gmail.com> | 2010-03-31 12:59:10 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-03-31 12:59:41 +0200 |
commit | 62151dd272fa59f19d8e0df7e21600b06d865539 (patch) | |
tree | 9ac3d4fa4e57ba4b96094f8a117627f582a4f31f /actionpack/lib/action_controller/deprecated | |
parent | c10958fbddb22052e7cbe5fe6b825cda3cb26e48 (diff) | |
download | rails-62151dd272fa59f19d8e0df7e21600b06d865539.tar.gz rails-62151dd272fa59f19d8e0df7e21600b06d865539.tar.bz2 rails-62151dd272fa59f19d8e0df7e21600b06d865539.zip |
Deprecate cookie_verifier_secret in favor of config.cookie_secret allowing signed cookies to work again.
Diffstat (limited to 'actionpack/lib/action_controller/deprecated')
-rw-r--r-- | actionpack/lib/action_controller/deprecated/base.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/deprecated/base.rb b/actionpack/lib/action_controller/deprecated/base.rb index bbde570ca9..2fd60aacc7 100644 --- a/actionpack/lib/action_controller/deprecated/base.rb +++ b/actionpack/lib/action_controller/deprecated/base.rb @@ -66,6 +66,18 @@ module ActionController Rails.application.config.action_dispatch.ip_spoofing_check end + def cookie_verifier_secret=(value) + ActiveSupport::Deprecation.warn "ActionController::Base.cookie_verifier_secret= is deprecated. " << + "Please configure it on your application with config.cookie_secret=", caller + ActionController::Base.config.secret = value + end + + def cookie_verifier_secret + ActiveSupport::Deprecation.warn "ActionController::Base.cookie_verifier_secret is deprecated. " << + "Please use ActionController::Base.config.secret instead.", caller + ActionController::Base.config.secret + end + def trusted_proxies=(value) ActiveSupport::Deprecation.warn "ActionController::Base.trusted_proxies= is deprecated. " << "Please configure it on your application with config.action_dispatch.trusted_proxies=", caller |