Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #14840 from akshay-vishnoi/doc_changes

Correct comment [ci skip]
  • Loading branch information...
commit 650585da8ac15742b64965c338110e8e859a3b5e 2 parents d10e2ca + 290b83d
@arthurnn arthurnn authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/inflector/methods.rb
View
4 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)
Please sign in to comment.
Something went wrong with that request. Please try again.