Skip to content

Commit

Permalink
Fix DEPRECATION WARNING: update_attributes is deprecated and will be …
Browse files Browse the repository at this point in the history
…removed from Rails 6.1
  • Loading branch information
kwent committed May 23, 2020
1 parent 7bc4946 commit 9548904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/koudoku/subscriptions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def edit
end

def update
if @subscription.update_attributes(subscription_params)
if @subscription.update(subscription_params)
flash[:notice] = I18n.t('koudoku.confirmations.subscription_updated')
redirect_to owner_subscription_path(@owner, @subscription)
else
Expand Down

0 comments on commit 9548904

Please sign in to comment.