1
0
Fork 0
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:
Semyon Perepelitsa 2012-01-31 18:09:11 +08:00
parent 81f6bcb6d5
commit d0706c3626

View file

@ -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