Skip to content

Commit

Permalink
favor includes over old AR way
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaydev authored and fxn committed Jun 18, 2011
1 parent 6a86a44 commit cbeb1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/performance_testing.textile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ resources :posts
# home_controller.rb # home_controller.rb
class HomeController < ApplicationController class HomeController < ApplicationController
def dashboard def dashboard
@users = User.last_ten(:include => :avatars) @users = User.last_ten.includes(:avatars)
@posts = Post.all_today @posts = Post.all_today
end end
end end
Expand Down

0 comments on commit cbeb1c1

Please sign in to comment.