diff options
author | Andrew White <andrew.white@unboxed.co> | 2016-11-13 22:28:18 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2016-11-13 22:28:18 +0000 |
commit | c32ccd837ee37272b5b7abee6afec40cb45491ed (patch) | |
tree | 9a291e1b815166a4db9e4fe2d53576aee6dcd201 /activesupport | |
parent | c9458c74e0933fa9925b700f72dd14000f73766f (diff) | |
download | rails-c32ccd837ee37272b5b7abee6afec40cb45491ed.tar.gz rails-c32ccd837ee37272b5b7abee6afec40cb45491ed.tar.bz2 rails-c32ccd837ee37272b5b7abee6afec40cb45491ed.zip |
Remove deprecated local_constants
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/introspection.rb | 8 | ||||
-rw-r--r-- | activesupport/test/core_ext/module_test.rb | 10 |
2 files changed, 0 insertions, 18 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/introspection.rb b/activesupport/lib/active_support/core_ext/module/introspection.rb index 4f854a718b..0665aa88bc 100644 --- a/activesupport/lib/active_support/core_ext/module/introspection.rb +++ b/activesupport/lib/active_support/core_ext/module/introspection.rb @@ -55,12 +55,4 @@ class Module parents << Object unless parents.include? Object parents end - - def local_constants #:nodoc: - ActiveSupport::Deprecation.warn(<<-MSG.squish) - Module#local_constants is deprecated and will be removed in Rails 5.1. - Use Module#constants(false) instead. - MSG - constants(false) - end end diff --git a/activesupport/test/core_ext/module_test.rb b/activesupport/test/core_ext/module_test.rb index e1e5236e65..121f744a3c 100644 --- a/activesupport/test/core_ext/module_test.rb +++ b/activesupport/test/core_ext/module_test.rb @@ -385,16 +385,6 @@ class ModuleTest < ActiveSupport::TestCase assert_equal [Yz::Zy, Yz, Object], Yz::Zy::Cd.parents assert_equal [Yz, Object], Yz::Zy.parents end - - def test_local_constants - ActiveSupport::Deprecation.silence do - assert_equal %w(Constant1 Constant3), Ab.local_constants.sort.map(&:to_s) - end - end - - def test_local_constants_is_deprecated - assert_deprecated { Ab.local_constants.sort.map(&:to_s) } - end end module BarMethodAliaser |