Performance improvement for stockit view.
This commit is contained in:
parent
9ac747e9f3
commit
ef2ce98e46
2 changed files with 4 additions and 10 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue