replace deprecated update_attributes with update
This commit is contained in:
parent
eb45a2bf21
commit
3ffdb424d5
28 changed files with 52 additions and 53 deletions
|
|
@ -63,7 +63,7 @@ class Finance::InvoicesController < ApplicationController
|
|||
end
|
||||
|
||||
def update
|
||||
if @invoice.update_attributes(params[:invoice])
|
||||
if @invoice.update(params[:invoice])
|
||||
redirect_to [:finance, @invoice], notice: I18n.t('finance.update.notice')
|
||||
else
|
||||
fill_deliveries_and_orders_collection @invoice.id, @invoice.supplier_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue