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.
Denormalizing statesman state onto the parent model.
#...
after_transition do |parent, transition|
parent.state = transition.to_state
parent.save!
end
#...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment