From e37d806e05959610924c0b7b355c9b17917fa30a Mon Sep 17 00:00:00 2001 From: Jonathan ES Lin Date: Thu, 27 Nov 2014 14:49:42 +0800 Subject: [PATCH 1/2] Remove :on_transition from README? --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f4421e1..6bb5008 100644 --- a/README.md +++ b/README.md @@ -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 a 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 From d515948a187af5c5ddab21093672bf6c2eb40550 Mon Sep 17 00:00:00 2001 From: Jonathan ES Lin Date: Thu, 27 Nov 2014 14:55:34 +0800 Subject: [PATCH 2/2] "the" instead of "a" --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6bb5008..280d7a7 100644 --- a/README.md +++ b/README.md @@ -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 a transition's `:after` 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