Skip to content

Files

Latest commit

 

History

History
21 lines (13 loc) · 423 Bytes

Rails-ActiveRecordAliases.md

File metadata and controls

21 lines (13 loc) · 423 Bytes

Pattern: Use of ActiveRecord alias

Issue: -

Description

Checks that ActiveRecord aliases are not used. The direct method names are more clear and easier to read.

Examples

#bad
Book.update_attributes!(author: 'Alice')

#good
Book.update!(author: 'Alice')

Further Reading