Skip to content

Instantly share code, notes, and snippets.

@michael
Created October 14, 2008 18:49
Show Gist options
  • Select an option

  • Save michael/16762 to your computer and use it in GitHub Desktop.

Select an option

Save michael/16762 to your computer and use it in GitHub Desktop.
state = State.get(1)
state.state_transitions << StateTransition.new(:target => QuoteState.get(3), :state_event => QuoteStateEvent.get(3))
state.save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment