From ecfb32cd165c0763befb7eed7e348438db928cef Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Sun, 13 May 2012 18:35:35 -0300 Subject: Remove dependency on safe_join from number helpers Introduced in 0f848dd54911f0e15c5c3aceabf09582cc6eab16. --- activesupport/lib/active_support/testing/performance.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/testing/performance.rb b/activesupport/lib/active_support/testing/performance.rb index 5048c4a0d0..ec6986654e 100644 --- a/activesupport/lib/active_support/testing/performance.rb +++ b/activesupport/lib/active_support/testing/performance.rb @@ -126,7 +126,7 @@ module ActiveSupport def record; end end - class Benchmarker < Performer + class Benchmarker < Performer def initialize(*args) super @supported = @metric.respond_to?('measure') @@ -196,7 +196,6 @@ module ActiveSupport class Base include ActionView::Helpers::NumberHelper - include ActionView::Helpers::OutputSafetyHelper attr_reader :total @@ -208,7 +207,7 @@ module ActiveSupport @name ||= self.class.name.demodulize.underscore end - def benchmark + def benchmark with_gc_stats do before = measure yield -- cgit v1.2.3