replace update_attributes with updat since deprecated
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
85270e70cf
commit
af3444bba6
25 changed files with 42 additions and 42 deletions
|
|
@ -25,7 +25,7 @@ class Admin::LinksController < Admin::BaseController
|
|||
def update
|
||||
@link = Link.find(params[:id])
|
||||
|
||||
if @link.update_attributes!(link_params)
|
||||
if @link.update!(link_params)
|
||||
index
|
||||
render action: :update_links
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue