pluginaweek/state_machine — Issue #148: strange behavior
Author: releu
Created: 2011-12-26 08:17:01+00:00
State: open

Hi!

I've got a model with state machine:

```ruby
state_machine :state, :initial => :real do
state :real
state :completed

event :complete do
transition :real => :completed, :if => :completable?
end

after_transition :real => :completed, :do => :ship
end
```
In 99.5% cases ```complete``` works. But for other method ```ship``` don't starts, but the record state updates to ```completed```.
I can't catch it in dev env.

I don't understand how it is possible. Do you have any ideas?

Rails 3.1.1, StateMachine 1.1.0, Ruby 1.9.3