
[patch]Small suggestions for dm-validations
Reported by Guillaume Maury (giom) | May 31st, 2008 @ 08:21 AM
Currently saves return false if the attributes are not dirty or if the resource is not valid.
In most cases, I don't care if it doesn't save because the attributes were not modified but I do care about having an invalid resource. So I added a save! method that raises an exception if the resource is invalid...
Anyway it's just a trivial patch...
Comments and changes to this ticket
-
Adam French June 12th, 2008 @ 04:16 PM
- State changed from new to invalid
And behold, the ssmoot has spoken, and he spake:
'! methods will skip validations and never raise exceptions'
And so it was and is and shall be. And his apostle carllerche made it so
-
Adam French June 12th, 2008 @ 04:18 PM
And the peasants rejoiced, for Guillaume's enthusiasm was much appreciated and encouraged even though his patch was not applied ;-)
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »