It think this string will have a load of spaces in it. Use something like this instead:

```ruby
          raise NotImplementedError, "A transition_class method should be " +
                                     "defined on the model"
```