#13 new
Zubin

Unrecognised option keys should raise an exception

Reported by Zubin | February 11th, 2009 @ 06:01 PM

Hi Scott,

Update: It also appears that array values have also been deprecated. eg this no longer works: :enter => [:send_notification, :update_status]

After upgrading from acts_as_state_machine, I had something like this: aasm_state :despatched, :after => :send_notification

After much head scratching, it appeared that :after had been deprecated in favour of :enter.

I couldn't find this in the rdoc, so I reckon it would be ideal to raise an exception if any options are not recognised.

btw I like the new version - it's much stricter than the old one, raising an exception when attempting an invalid transition.

No comments found

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Library for adding state machines to Ruby classes. Includes persistence layers for things like ActiveRecord. Formerly known as acts_as_state_machine.

People watching this ticket

Pages