From 8371b0b8544b830d65ed0af14e3aac3fde6425ac Mon Sep 17 00:00:00 2001 From: Eric Carty-Fickes Date: Tue, 26 Jun 2012 15:00:11 -0500 Subject: corrected URLs and controller benchmark method call --- guides/source/performance_testing.textile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'guides/source/performance_testing.textile') diff --git a/guides/source/performance_testing.textile b/guides/source/performance_testing.textile index 958b13cd9e..982fd1b070 100644 --- a/guides/source/performance_testing.textile +++ b/guides/source/performance_testing.textile @@ -524,11 +524,11 @@ Please refer to the "API docs":http://api.rubyonrails.org/classes/ActiveRecord/B h4. Controller -Similarly, you could use this helper method inside "controllers":http://api.rubyonrails.org/classes/ActionController/Benchmarking/ClassMethods.html#M000715 +Similarly, you could use this helper method inside "controllers":http://api.rubyonrails.org/classes/ActiveSupport/Benchmarkable.html def process_projects - self.class.benchmark("Processing projects") do + benchmark("Processing projects") do Project.process(params[:project_ids]) Project.update_cached_projects end @@ -539,7 +539,7 @@ NOTE: +benchmark+ is a class method inside controllers h4. View -And in "views":http://api.rubyonrails.org/classes/ActionController/Benchmarking/ClassMethods.html#M000715: +And in "views":http://api.rubyonrails.org/classes/ActiveSupport/Benchmarkable.html: <% benchmark("Showing projects partial") do %> -- cgit v1.2.3