Skip to content

Commit

Permalink
Mise à jour du code pour Rails 6.1
Browse files Browse the repository at this point in the history
La méthode `update_attributes` a été suprimée
  • Loading branch information
etienneCharignon committed Feb 10, 2021
1 parent 1eeb232 commit ffc42d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/admin/comptes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
controller do
def update_resource(object, attributes)
update_method = if attributes.first[:password].present?
:update_attributes
:update
else
:update_without_password
end
Expand Down

0 comments on commit ffc42d3

Please sign in to comment.