aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/performance_testing.textile
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-06-10 17:18:57 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-06-11 19:20:54 +0530
commit3c06d25cf948bd7325454b1d4a843b5178221494 (patch)
tree55376860eb218ffc2a1c0e645af4ded0bf718b69 /railties/guides/source/performance_testing.textile
parent83289bedddd488e3b3bdd7ff58cd9dd2334d9623 (diff)
downloadrails-3c06d25cf948bd7325454b1d4a843b5178221494.tar.gz
rails-3c06d25cf948bd7325454b1d4a843b5178221494.tar.bz2
rails-3c06d25cf948bd7325454b1d4a843b5178221494.zip
favor includes over old AR way
Diffstat (limited to 'railties/guides/source/performance_testing.textile')
-rw-r--r--railties/guides/source/performance_testing.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/performance_testing.textile b/railties/guides/source/performance_testing.textile
index d3b0f84a86..a4187a3135 100644
--- a/railties/guides/source/performance_testing.textile
+++ b/railties/guides/source/performance_testing.textile
@@ -66,7 +66,7 @@ resources :posts
# home_controller.rb
class HomeController < ApplicationController
def dashboard
- @users = User.last_ten(:include => :avatars)
+ @users = User.last_ten.includes(:avatars)
@posts = Post.all_today
end
end