diff options
author | Akira Matsuda <ronnie@dio.jp> | 2015-12-19 16:35:38 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2015-12-19 16:41:07 +0900 |
commit | 6873db4699ac727dd27eedb0994ecdd976b40901 (patch) | |
tree | cc0f6046becbf12935ea312039fa7a77ae6c3907 /activesupport/lib | |
parent | bbd780f75147b8560596f0a64b98d82f44b621ad (diff) | |
download | rails-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')
-rw-r--r-- | activesupport/lib/active_support/deprecation.rb | 2 |
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. |