support for Active Record 3
memoize the `state_machine` instance method, not this one.