Skip to content

Commit 6eb1d56

Browse files
committed
Remove deprecated Module#reachable? method
1 parent 0ce67d3 commit 6eb1d56

File tree

4 files changed

+5
-58
lines changed

4 files changed

+5
-58
lines changed

activesupport/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* Remove deprecated `Module#reachable?` method.
2+
3+
*Rafael Mendonça França*
4+
15
* Remove deprecated `#acronym_regex` method from `Inflections`.
26

37
*Rafael Mendonça França*

activesupport/lib/active_support/core_ext/module.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require "active_support/core_ext/module/aliasing"
44
require "active_support/core_ext/module/introspection"
55
require "active_support/core_ext/module/anonymous"
6-
require "active_support/core_ext/module/reachable"
76
require "active_support/core_ext/module/attribute_accessors"
87
require "active_support/core_ext/module/attribute_accessors_per_thread"
98
require "active_support/core_ext/module/attr_internal"

activesupport/lib/active_support/core_ext/module/reachable.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,4 @@
33
require "active_support/core_ext/module/anonymous"
44
require "active_support/core_ext/string/inflections"
55

6-
class Module
7-
def reachable? #:nodoc:
8-
!anonymous? && name.safe_constantize.equal?(self)
9-
end
10-
deprecate :reachable?
11-
end
6+
ActiveSupport::Deprecation.warn("reachable is deprecated and will be removed from the framework.")

activesupport/test/core_ext/module/reachable_test.rb

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)