Fixed broken eager loading in orders#edit.

This commit is contained in:
Benjamin Meichsner 2015-01-16 15:49:31 +01:00
parent 557fa78ebe
commit 65dee49cdb

View file

@ -82,7 +82,7 @@ class OrdersController < ApplicationController
# Page to edit an exsiting order.
# editing finished orders is done in FinanceController
def edit
@order = Order.find(params[:id], :include => :articles)
@order = Order.includes(:articles).find(params[:id])
end
# Update an existing order.