diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-01 10:31:51 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-01 10:31:51 -0800 |
commit | 7bfdbeabd26f87d9e6bb6891d6c8dee36d1dfcb1 (patch) | |
tree | 0dc37ebe223e589adde0dc419e7f960843e2534f /activesupport | |
parent | 049dc500b632ca1a05d41a0c5454946f24d15035 (diff) | |
parent | 46fc0f22e2e59234bdc37a58b04038caf5829f4b (diff) | |
download | rails-7bfdbeabd26f87d9e6bb6891d6c8dee36d1dfcb1.tar.gz rails-7bfdbeabd26f87d9e6bb6891d6c8dee36d1dfcb1.tar.bz2 rails-7bfdbeabd26f87d9e6bb6891d6c8dee36d1dfcb1.zip |
Merge pull request #4784 from semaperepelitsa/constantize
A little constantize update
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/inflector/methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/inflector/methods.rb b/activesupport/lib/active_support/inflector/methods.rb index 4e6eb27756..12dc86aeac 100644 --- a/activesupport/lib/active_support/inflector/methods.rb +++ b/activesupport/lib/active_support/inflector/methods.rb @@ -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 |