mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Rails 6.1 Deprecates update_attributes
This commit is contained in:
1 parent
96e4e9df66
commit
47868051f8
1 file changed
+1
-1
@@ -115,7 +115,7 @@ class CustomersController < ApplicationController
|
||||
def update
|
||||
begin
|
||||
@customer = Customer.find_by_id(params[:id])
|
||||
if @customer.update_attributes(params)
|
||||
if @customer.update(allowed_params)
|
||||
flash[:notice] = "Customer updated"
|
||||
redirect_to @customer
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user