Browse files

Correct comment [ci skip]

  • Loading branch information...
Akshay Vishnoi
Akshay Vishnoi committed Apr 23, 2014
1 parent 0c2854f commit 290b83d1cf1722460e53a449fbbc71a6d3f967ac
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/inflector/methods.rb
@@ -244,8 +244,8 @@ def constantize(camel_cased_word)
next candidate if constant.const_defined?(name, false)
next candidate unless Object.const_defined?(name)
- # Go down the ancestors to check it it's owned
- # directly before we reach Object or the end of ancestors.
+ # Go down the ancestors to check if it is owned directly. The check
+ # stops when we reach Object or the end of ancestors tree.
constant = constant.ancestors.inject do |const, ancestor|
break const if ancestor == Object
break ancestor if ancestor.const_defined?(name, false)

0 comments on commit 290b83d

Please sign in to comment.