aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorSemyon Perepelitsa <sema@sema.in>2012-01-31 18:09:11 +0800
committerSemyon Perepelitsa <sema@sema.in>2012-01-31 18:09:11 +0800
commitd0706c3626fcab9cd87a522071a3f6027a6fb79d (patch)
tree2b9296b7a94f37bd0195216c03140939a4be9ff8 /activesupport/lib
parent81f6bcb6d5d724a81976f777306b6837c5e713f1 (diff)
downloadrails-d0706c3626fcab9cd87a522071a3f6027a6fb79d.tar.gz
rails-d0706c3626fcab9cd87a522071a3f6027a6fb79d.tar.bz2
rails-d0706c3626fcab9cd87a522071a3f6027a6fb79d.zip
There is an "inherit" option on const_get too, why not use it?
Diffstat (limited to 'activesupport/lib')
-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