diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2017-09-20 13:11:34 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-20 13:11:34 -0600 |
commit | eddb9baf39bce0608b3364339ec171332a315d9f (patch) | |
tree | 1a4055b2bfcd38a8ec9a7b688fb4a7d879ac86db /activesupport/lib/active_support | |
parent | e7f39af3fafbb83e93b3bb58a03aefbf10752f41 (diff) | |
parent | 275065355c833b769daf898bf7940c0ff98b6a7c (diff) | |
download | rails-eddb9baf39bce0608b3364339ec171332a315d9f.tar.gz rails-eddb9baf39bce0608b3364339ec171332a315d9f.tar.bz2 rails-eddb9baf39bce0608b3364339ec171332a315d9f.zip |
Merge pull request #30624 from bogdanvlviv/deprecate_Module_reachable
Deprecate `Module#reachable?` method
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/core_ext/class/subclasses.rb | 3 | ||||
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/reachable.rb | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/class/subclasses.rb b/activesupport/lib/active_support/core_ext/class/subclasses.rb index 4c910feb44..75e65337b7 100644 --- a/activesupport/lib/active_support/core_ext/class/subclasses.rb +++ b/activesupport/lib/active_support/core_ext/class/subclasses.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true -require_relative "../module/anonymous" -require_relative "../module/reachable" - class Class begin # Test if this Ruby supports each_object against singleton_class diff --git a/activesupport/lib/active_support/core_ext/module/reachable.rb b/activesupport/lib/active_support/core_ext/module/reachable.rb index 91b230b46c..790a3cc561 100644 --- a/activesupport/lib/active_support/core_ext/module/reachable.rb +++ b/activesupport/lib/active_support/core_ext/module/reachable.rb @@ -7,4 +7,5 @@ class Module def reachable? #:nodoc: !anonymous? && name.safe_constantize.equal?(self) end + deprecate :reachable? end |