aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorbodhi <bodhi@5263.org>2010-06-30 12:50:41 +1000
committerJosé Valim <jose.valim@gmail.com>2010-06-30 16:58:05 +0200
commit2eaae1f50b7fc34b90b2b7c83c55478b85d1130c (patch)
tree803e00b31c0f70e752a70d210b6339d4012d943e /activesupport
parent9ab8cfc21ab07b9a65388ce3643e5558642dbc2a (diff)
downloadrails-2eaae1f50b7fc34b90b2b7c83c55478b85d1130c.tar.gz
rails-2eaae1f50b7fc34b90b2b7c83c55478b85d1130c.tar.bz2
rails-2eaae1f50b7fc34b90b2b7c83c55478b85d1130c.zip
add note of which configuration option to set in deprecation warning message [#5012 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/railtie.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/railtie.rb b/activesupport/lib/active_support/railtie.rb
index 7970d39faf..c2deba3b1b 100644
--- a/activesupport/lib/active_support/railtie.rb
+++ b/activesupport/lib/active_support/railtie.rb
@@ -25,14 +25,16 @@ module ActiveSupport
if defaults.key?(env)
msg = "You did not specify how you would like Rails to report " \
"deprecation notices for your #{env} environment, please " \
- "set it to :#{defaults[env]} at config/environments/#{env}.rb"
+ "set config.active_support.deprecation to :#{defaults[env]} " \
+ "at config/environments/#{env}.rb"
warn msg
ActiveSupport::Deprecation.behavior = defaults[env]
else
msg = "You did not specify how you would like Rails to report " \
"deprecation notices for your #{env} environment, please " \
- "set it to :log, :notify or :stderr at config/environments/#{env}.rb"
+ "set config.active_support.deprecation to :log, :notify or " \
+ ":stderr at config/environments/#{env}.rb"
warn msg
ActiveSupport::Deprecation.behavior = :stderr
@@ -55,4 +57,4 @@ module ActiveSupport
Time.zone_default = zone_default
end
end
-end \ No newline at end of file
+end