From 0db494ae215dc7e361f42c79625a56f7bbc725e5 Mon Sep 17 00:00:00 2001 From: bodhi Date: Wed, 30 Jun 2010 12:50:41 +1000 Subject: [PATCH] add note of which configuration option to set in deprecation warning message [#5012 state:resolved] --- activesupport/lib/active_support/railtie.rb | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/activesupport/lib/active_support/railtie.rb b/activesupport/lib/active_support/railtie.rb index 7970d39..c2deba3 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 -- 1.7.0.4