Skip to content

Instantly share code, notes, and snippets.

@appleton
Created October 28, 2013 15:31
Show Gist options
  • Save appleton/7198939 to your computer and use it in GitHub Desktop.
Save appleton/7198939 to your computer and use it in GitHub Desktop.

Revisions

  1. @mrappleton mrappleton created this gist Oct 28, 2013.
    6 changes: 6 additions & 0 deletions callback.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #...
    after_transition do |parent, transition|
    parent.state = transition.to_state
    parent.save!
    end
    #...