diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-06-10 17:18:57 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-06-11 19:20:54 +0530 |
commit | 3c06d25cf948bd7325454b1d4a843b5178221494 (patch) | |
tree | 55376860eb218ffc2a1c0e645af4ded0bf718b69 | |
parent | 83289bedddd488e3b3bdd7ff58cd9dd2334d9623 (diff) | |
download | rails-3c06d25cf948bd7325454b1d4a843b5178221494.tar.gz rails-3c06d25cf948bd7325454b1d4a843b5178221494.tar.bz2 rails-3c06d25cf948bd7325454b1d4a843b5178221494.zip |
favor includes over old AR way
-rw-r--r-- | railties/guides/source/performance_testing.textile | 2 |
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 |