hobo should add a validator for state values
Reported by Betelgeuse | August 5th, 2009 @ 04:31 PM | in Beyond Hobo 1.0
>> r.state = 'foobar'
=> "foobar"
>> r.valid?
=> true
imho hobo should add a validator so that only values declared as states are allowed. Maybe make use of the EnumString rich type?
Comments and changes to this ticket
-
Bryan Larsen October 20th, 2009 @ 07:29 PM
- Tag changed from lifecycles to enhancement, lifecycles
-
Bryan Larsen October 20th, 2009 @ 07:32 PM
Maybe we should make the state= function a private function, forcing the use of the transition functions.
-
Tom Locke October 24th, 2009 @ 05:55 PM
- Milestone set to Beyond Hobo 1.0
Agreed, we should add this, but not urgent for 1.0
-
Tom Locke October 24th, 2009 @ 06:09 PM
- State changed from new to open
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 ยป