Permalink
Browse files

Added eager loading to AccountsController#index

  • Loading branch information...
jrmehle committed Jan 18, 2011
1 parent 4e5a66e commit 9fff38187e7b215b88f91a3bc3a5cf421244a0b9
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/accounts_controller.rb
@@ -1,5 +1,5 @@
class AccountsController < ApplicationController
def index
- @accounts = Account.find :all
+ @accounts = Account.includes(:names, :nicks, :sites, :services, :portraits, :books)
end
end

0 comments on commit 9fff381

Please sign in to comment.