Refactor fixes

This commit is contained in:
2013-03-14 16:02:20 +01:00
parent 70d672aa36
commit d54662d973
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ class SupplierController < ApplicationController
# POST /orders/1/is_being_processed
def mark_order_in_process
@order = Order.find_by_supplier_id_and_id(current_supplier.id, params[:order_id])
@order = Order.find_by_supplier_id_and_id!(current_supplier.id, params[:order_id])
@order.is_being_processed!
render nothing: true
end