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
|
|
@ -37,7 +37,7 @@ class PollsController < ApplicationController
|
|||
|
||||
if user_has_no_right
|
||||
redirect_to polls_path, alert: t('.no_right')
|
||||
elsif @poll.update_attributes(poll_params)
|
||||
elsif @poll.update(poll_params)
|
||||
redirect_to @poll, notice: t('.notice')
|
||||
else
|
||||
render action: 'edit'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue