aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support')
-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