Skip to content
This repository
Browse code

Use @app_env_config instead of @env_config

Check pull request #9789 for more information.
  • Loading branch information...
commit 862389c9537dbb6f65fd26c4325e07607ed437b5 1 parent 111611b
José Valim authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  railties/lib/rails/application.rb
2  railties/lib/rails/application.rb
@@ -134,7 +134,7 @@ def key_generator
134 134
     #   * "action_dispatch.encrypted_signed_cookie_salt" => config.action_dispatch.encrypted_signed_cookie_salt
135 135
     #
136 136
     def env_config
137  
-      @env_config ||= begin
  137
+      @app_env_config ||= begin
138 138
         if config.secret_key_base.nil?
139 139
           ActiveSupport::Deprecation.warn "You didn't set config.secret_key_base in config/initializers/secret_token.rb file. " +
140 140
             "This should be used instead of the old deprecated config.secret_token in order to use the new EncryptedCookieStore. " +

2 notes on commit 862389c

Evan Phoenix

Don't forget to change #initialize too!

Carlos Antonio da Silva

Done in f0d5e32.

Please sign in to comment.
Something went wrong with that request. Please try again.