Performance improvement for stockit view.

This commit is contained in:
benni 2012-07-31 17:37:32 +02:00
parent 9ac747e9f3
commit ef2ce98e46
2 changed files with 4 additions and 10 deletions

View file

@ -1,7 +1,7 @@
class StockitController < ApplicationController
def index
@stock_articles = StockArticle.joins(:supplier, :article_category).
@stock_articles = StockArticle.includes(:supplier, :article_category).
order('suppliers.name, article_categories.name, articles.name')
end