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
-
Bryan Larsen February 27th, 2009 @ 05:20 PM
and also, if you don't have an :available_to set on the transition, you can call the transition with:
submission.lifecycle.ready_submission!(nil, :message => "Hello")
-
Tom Locke March 12th, 2009 @ 10:37 AM
- State changed from new to resolved
Fixed in cb8a5df
It was the code that was wrong, not the docs
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 ยป