aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2015-12-19 16:35:38 +0900
committerAkira Matsuda <ronnie@dio.jp>2015-12-19 16:41:07 +0900
commit6873db4699ac727dd27eedb0994ecdd976b40901 (patch)
treecc0f6046becbf12935ea312039fa7a77ae6c3907 /activesupport/lib/active_support
parentbbd780f75147b8560596f0a64b98d82f44b621ad (diff)
downloadrails-6873db4699ac727dd27eedb0994ecdd976b40901.tar.gz
rails-6873db4699ac727dd27eedb0994ecdd976b40901.tar.bz2
rails-6873db4699ac727dd27eedb0994ecdd976b40901.zip
Deprecation warning now targets at 5.1
Also, added a test case to make sure that the default deprecation horizon is always bigger than the current Rails version.
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/deprecation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/deprecation.rb b/activesupport/lib/active_support/deprecation.rb
index 46e9996d59..24545d766c 100644
--- a/activesupport/lib/active_support/deprecation.rb
+++ b/activesupport/lib/active_support/deprecation.rb
@@ -32,7 +32,7 @@ module ActiveSupport
# and the second is a library name
#
# ActiveSupport::Deprecation.new('2.0', 'MyLibrary')
- def initialize(deprecation_horizon = '5.0', gem_name = 'Rails')
+ def initialize(deprecation_horizon = '5.1', gem_name = 'Rails')
self.gem_name = gem_name
self.deprecation_horizon = deprecation_horizon
# By default, warnings are not silenced and debugging is off.