record.user_save raises permission exception
Reported by Tiago Franco | December 21st, 2008 @ 01:17 PM
According to hobo's cookbook, record.user_create should return true or false. record.user_create! should throw an exception.
record.user_create is throwing exception instead of returning true or false.
Comments and changes to this ticket
-
Tom Locke December 30th, 2008 @ 03:11 PM
- Tag set to doc, documentation, models, tests
- State changed from new to wontfix
The ! version raises an exception on a validation error, not a permission error. Permission errors are always exceptions.
Is something in the manual misleading in this regard?
-
Tiago Franco December 31st, 2008 @ 12:16 AM
Ok. Reading the manual, I didn't catch the idea that user_create could throw a validation exception.
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 ยป