Skip to content

Model method names should not conflict with attribute names #74

merged 1 commit into from Apr 19, 2013
+1 −0
1 best-practices/
@@ -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.