Skip to content
Permalink
Browse files
Remove deprecated Module#reachable? method
  • Loading branch information
rafaelfranca committed Jan 17, 2019
1 parent 0ce67d3 commit 6eb1d56a333fd2015610d31793ed6281acd66551
@@ -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*
@@ -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"
@@ -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.")

This file was deleted.

0 comments on commit 6eb1d56

Please sign in to comment.