Using state_machine events within a resource_controller

Posted Over 13 years ago. Visible to the public.

If you need to call a state_machine Show archive.org snapshot event and do not want to re-define resource_controller Show archive.org snapshot 's create method, try this:

create.before do
  object.state_event = :launch_spaceship
end
Arne Hartherz
Last edit
About 13 years ago
Keywords
transitions
License
Source code in this card is licensed under the MIT License.
Posted by Arne Hartherz to makandra dev (2010-09-29 13:44)