Ruby

Ruby

Made by DeepSource

Use of ActiveRecord alias detected RB-RL1002

Anti-pattern
Major

The direct attribute names are clearer and easier to read.

Bad practice

Book.update_attributes!(author: 'Alice')

Recommended

Book.update!(author: 'Alice')