Skip to content

Instantly share code, notes, and snippets.

@levicole
Created October 23, 2009 01:45
Show Gist options
  • Select an option

  • Save levicole/216537 to your computer and use it in GitHub Desktop.

Select an option

Save levicole/216537 to your computer and use it in GitHub Desktop.
aasm_column :state
aasm_initial_state :division_selection
aasm_state :division_selection
aasm_state :track_selection
aasm_state :track_selected
aasm_event :select_division do
transitions :to => :track_selection, :from => [ :division_selection ]
end
aasm_event :select_track do
transitions :to => :track_selected, :from => [ :division_selected, :track_selection ]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment