Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 9 lines (7 sloc) 0.208 kb
aa82bdf @fxn moves Class#reachable? to Module#reachable?, bases implementation on ano...
fxn authored
1 require 'active_support/core_ext/module/anonymous'
2 require 'active_support/core_ext/string/inflections'
3
4 class Module
5 def reachable? #:nodoc:
e8987c3 @josevalim Use safe_constantize where possible.
josevalim authored
6 !anonymous? && name.safe_constantize.equal?(self)
aa82bdf @fxn moves Class#reachable? to Module#reachable?, bases implementation on ano...
fxn authored
7 end
8 end
Something went wrong with that request. Please try again.