Fork of acts_as_state_machine plugin for Rails