Permalink
Browse files

Merge pull request #14840 from akshay-vishnoi/doc_changes

Correct comment [ci skip]
  • Loading branch information...
2 parents d10e2ca + 290b83d commit 650585da8ac15742b64965c338110e8e859a3b5e @arthurnn arthurnn committed Apr 23, 2014
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 650585d

Please sign in to comment.