From 59b2daba4f2d1eadabd3e89299114f0d77ae454d Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sun, 15 Jun 2008 14:48:15 -0700 Subject: Metrics::[] escues NameError only. Fix MODE typo. --- activesupport/lib/active_support/testing/performance.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activesupport/lib') 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 -- cgit v1.2.3