Skip to content

Model method names should not conflict with attribute names #74

Merged
merged 1 commit into from Apr 19, 2013
+1 −0
View
1 best-practices/README.md
@@ -52,6 +52,7 @@ Rails
* Avoid bypassing validations with methods like `save(validate: false)`,
`update_attribute`, and `toggle`.
+* Avoid naming methods after database columns in the same class.
* Don't change a migration after it has been merged into master if the desired
change can be solved with another migration.
* Don't reference a model class directly from a view.
Something went wrong with that request. Please try again.