#385 ✓resolved
Bryan Larsen

documentation bug: lifecycle transition params

Reported by Bryan Larsen | February 27th, 2009 @ 01:46 PM

I'm using Hobo 0.8.5.

There's an option to the transition method called "update". In the manual it is called "params".

instead of :

transition :ready_submission, { :open => :ready, }, :available_to => "User", :update => [:message]

write:

transition :ready_submission, { :open => :ready, }, :available_to => "User", :update => [:message]

and one thing that isn't mentioned in the manual: you can call the transition from code with

submission.lifecycle.ready_submission!(user, :message => "Hello")

Comments and changes to this ticket

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 ยป

People watching this ticket

Pages