From 0cef199c8efcba64b7e7acac036f32adfe293970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Silva?= Date: Sat, 12 Jun 2010 12:03:59 +0100 Subject: check if the profiler patch is applied, otherwise GC::Profiler doesn't have the 'data' method --- activesupport/lib/active_support/testing/performance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/testing/performance.rb b/activesupport/lib/active_support/testing/performance.rb index 472b15bfe0..836dce2005 100644 --- a/activesupport/lib/active_support/testing/performance.rb +++ b/activesupport/lib/active_support/testing/performance.rb @@ -261,7 +261,7 @@ begin protected # Ruby 1.9 + extented GC profiler patch - if defined?(GC::Profiler) + if defined?(GC::Profiler) and GC::Profiler.respond_to?(:data) def with_gc_stats GC.start GC.disable -- cgit v1.2.3