Skip to content

Commit

Permalink
Remove deprecated Module#reachable? method
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Jan 17, 2019
1 parent 0ce67d3 commit 6eb1d56
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 58 deletions.
4 changes: 4 additions & 0 deletions activesupport/CHANGELOG.md
@@ -1,3 +1,7 @@
* Remove deprecated `Module#reachable?` method.

*Rafael Mendonça França*

* Remove deprecated `#acronym_regex` method from `Inflections`.

*Rafael Mendonça França*
Expand Down
1 change: 0 additions & 1 deletion activesupport/lib/active_support/core_ext/module.rb
Expand Up @@ -3,7 +3,6 @@
require "active_support/core_ext/module/aliasing"
require "active_support/core_ext/module/introspection"
require "active_support/core_ext/module/anonymous"
require "active_support/core_ext/module/reachable"
require "active_support/core_ext/module/attribute_accessors"
require "active_support/core_ext/module/attribute_accessors_per_thread"
require "active_support/core_ext/module/attr_internal"
Expand Down
Expand Up @@ -3,9 +3,4 @@
require "active_support/core_ext/module/anonymous"
require "active_support/core_ext/string/inflections"

class Module
def reachable? #:nodoc:
!anonymous? && name.safe_constantize.equal?(self)
end
deprecate :reachable?
end
ActiveSupport::Deprecation.warn("reachable is deprecated and will be removed from the framework.")
51 changes: 0 additions & 51 deletions activesupport/test/core_ext/module/reachable_test.rb

This file was deleted.

0 comments on commit 6eb1d56

Please sign in to comment.