79318565

Date: 2024-12-30 20:37:16
Score: 2.5
Natty:
Report link

@user.update(...) also works in rails 6 and it fully replaces @user.update_attributes(...) from rails 5 code. You don't need to convert it to a class instance aka User.update call where you can get later issues when updating nested models (while @user.update also works on nested models just like the deprecated method update_attributes did in rails 5).

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Walter Schreppers