diff options
author | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2014-04-23 14:15:03 +0530 |
---|---|---|
committer | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2014-04-23 14:15:03 +0530 |
commit | 290b83d1cf1722460e53a449fbbc71a6d3f967ac (patch) | |
tree | c7e85b5e4aa5aa00ee97c3d2141d030c926c5e4b /activesupport | |
parent | 0c2854fa0302acfeb27f1316f2163b3c1dfc4f95 (diff) | |
download | rails-290b83d1cf1722460e53a449fbbc71a6d3f967ac.tar.gz rails-290b83d1cf1722460e53a449fbbc71a6d3f967ac.tar.bz2 rails-290b83d1cf1722460e53a449fbbc71a6d3f967ac.zip |
Correct comment [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/inflector/methods.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/inflector/methods.rb b/activesupport/lib/active_support/inflector/methods.rb index 94bda511bc..4fbbdd46d4 100644 --- a/activesupport/lib/active_support/inflector/methods.rb +++ b/activesupport/lib/active_support/inflector/methods.rb @@ -244,8 +244,8 @@ module ActiveSupport 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) |