mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
There is an "inherit" option on const_get too, why not use it?
This commit is contained in:
parent
81f6bcb6d5
commit
d0706c3626
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ module ActiveSupport
|
|||
|
||||
constant = Object
|
||||
names.each do |name|
|
||||
constant = constant.const_defined?(name, false) ? constant.const_get(name) : constant.const_missing(name)
|
||||
constant = constant.const_get(name, false)
|
||||
end
|
||||
constant
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue