Skip to content

Instantly share code, notes, and snippets.

@ehrenmurdick
Created May 8, 2012 20:03
Show Gist options
  • Save ehrenmurdick/2638892 to your computer and use it in GitHub Desktop.
Save ehrenmurdick/2638892 to your computer and use it in GitHub Desktop.
state_machine module
module Foobar
def self.included(klass)
klass.instance_eval do
state_machine :foo, :initial => :bar do
# etc etc etc
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment