Merge pull request #341 from aboutsource/fix-order-edit-loading
Fixed broken eager loading in orders#edit.
This commit is contained in:
commit
7d3d524107
1 changed files with 7 additions and 7 deletions
|
@ -82,7 +82,7 @@ class OrdersController < ApplicationController
|
||||||
# Page to edit an exsiting order.
|
# Page to edit an exsiting order.
|
||||||
# editing finished orders is done in FinanceController
|
# editing finished orders is done in FinanceController
|
||||||
def edit
|
def edit
|
||||||
@order = Order.find(params[:id], :include => :articles)
|
@order = Order.includes(:articles).find(params[:id])
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update an existing order.
|
# Update an existing order.
|
||||||
|
|
Loading…
Reference in a new issue