Permalink
Browse files

Use @app_env_config instead of @env_config

Check pull request #9789 for more information.
  • Loading branch information...
josevalim committed Mar 19, 2013
1 parent 111611b commit 862389c9537dbb6f65fd26c4325e07607ed437b5
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/application.rb
@@ -134,7 +134,7 @@ def key_generator
# * "action_dispatch.encrypted_signed_cookie_salt" => config.action_dispatch.encrypted_signed_cookie_salt
#
def env_config
- @env_config ||= begin
+ @app_env_config ||= begin
if config.secret_key_base.nil?
ActiveSupport::Deprecation.warn "You didn't set config.secret_key_base in config/initializers/secret_token.rb file. " +
"This should be used instead of the old deprecated config.secret_token in order to use the new EncryptedCookieStore. " +

2 comments on commit 862389c

Contributor

evanphx replied Mar 19, 2013

Don't forget to change #initialize too!

Please sign in to comment.