aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-06-15 14:48:15 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2008-06-15 14:48:15 -0700
commit59b2daba4f2d1eadabd3e89299114f0d77ae454d (patch)
treee0df1bdd65fe6ce5f797fa69e0b72905055596d6 /activesupport/lib
parentf7866cdac12aecd332b71de4884664d54b0aef20 (diff)
downloadrails-59b2daba4f2d1eadabd3e89299114f0d77ae454d.tar.gz
rails-59b2daba4f2d1eadabd3e89299114f0d77ae454d.tar.bz2
rails-59b2daba4f2d1eadabd3e89299114f0d77ae454d.zip
Metrics::[] escues NameError only. Fix MODE typo.
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/testing/performance.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/testing/performance.rb b/activesupport/lib/active_support/testing/performance.rb
index 4440f10647..24dc19167b 100644
--- a/activesupport/lib/active_support/testing/performance.rb
+++ b/activesupport/lib/active_support/testing/performance.rb
@@ -168,7 +168,7 @@ module ActiveSupport
def self.[](name)
klass = const_get(name.to_s.camelize)
klass if klass::Mode
- rescue
+ rescue NameError
nil
end
@@ -192,7 +192,7 @@ module ActiveSupport
end
def profile
- RubyProf.measure_mode = MODE
+ RubyProf.measure_mode = Mode
RubyProf.resume { yield }
end