Pattern: Use of ActiveRecord alias
Issue: -
Checks that ActiveRecord aliases are not used. The direct method names are more clear and easier to read.
#bad
Book.update_attributes!(author: 'Alice')
#good
Book.update!(author: 'Alice')
Pattern: Use of ActiveRecord alias
Issue: -
Checks that ActiveRecord aliases are not used. The direct method names are more clear and easier to read.
#bad
Book.update_attributes!(author: 'Alice')
#good
Book.update!(author: 'Alice')