mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Don't autoload constants
This fixes `$ ActionController`
This commit is contained in:
parent
bb23c4bb31
commit
7238f0b68d
1 changed files with 1 additions and 0 deletions
|
@ -377,6 +377,7 @@ class Pry
|
||||||
end
|
end
|
||||||
|
|
||||||
def nested_module?(parent, name)
|
def nested_module?(parent, name)
|
||||||
|
return if safe_send(parent, :autoload?, name)
|
||||||
child = safe_send(parent, :const_get, name)
|
child = safe_send(parent, :const_get, name)
|
||||||
return unless Module === child
|
return unless Module === child
|
||||||
return unless safe_send(child, :name) == "#{safe_send(parent, :name)}::#{name}"
|
return unless safe_send(child, :name) == "#{safe_send(parent, :name)}::#{name}"
|
||||||
|
|
Loading…
Reference in a new issue