This project is archived and is in readonly mode.
validations based on methods and not actual attributes
-
Amos King
- Tag changed from invalid to validations
It is not ok. If your database isn't constraining that column you may have bad data in the database.
-
CancelProfileIsBroken
- State changed from new to wontfix
If you have a fix for this, please submit a patch. Otherwise, it looks like a simple case of "don't do that." If you patch, please explain how Rails is supposed to figure out what database column you intend to be validated for an arbitrary method.
-
Amos King
Rails should validate off of the attribute and save from the attribute. I'm not suggesting to change the save. The save currently works off of the attributes. I'm suggesting that since save is run from those attributes that validations should also be run against the same attributes.