aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-02-01 10:31:51 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-02-01 10:31:51 -0800
commit7bfdbeabd26f87d9e6bb6891d6c8dee36d1dfcb1 (patch)
tree0dc37ebe223e589adde0dc419e7f960843e2534f /activesupport/lib/active_support
parent049dc500b632ca1a05d41a0c5454946f24d15035 (diff)
parent46fc0f22e2e59234bdc37a58b04038caf5829f4b (diff)
downloadrails-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/lib/active_support')
-rw-r--r--activesupport/lib/active_support/inflector/methods.rb2
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