Skip to content

Commit

Permalink
Merge pull request #188 from ernsheong/edit-readme
Browse files Browse the repository at this point in the history
Remove :on_transition from README?
  • Loading branch information
alto committed Nov 27, 2014
2 parents 1b15042 + d515948 commit fe63fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -172,7 +172,7 @@ Note that when passing arguments to a state transition, the first argument must
In case of an error during the event processing the error is rescued and passed to `:error`
callback, which can handle it or re-raise it for further propagation.

During the `:on_transition` callback (and reliably only then) you can access the
During the transition's `:after` callback (and reliably only then) you can access the
originating state (the from-state) and the target state (the to state), like this:

```ruby
Expand Down

0 comments on commit fe63fc0

Please sign in to comment.