We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38231db commit f3da860Copy full SHA for f3da860
README.adoc
@@ -201,9 +201,11 @@ article2.review!('Homer Simpson') # => [Homer Simpson] is now reviewing the arti
201
Alternative way is to use a block (only recommended for short event
202
implementation without further code nesting):
203
204
- event :review, :transitions_to => :being_reviewed do |reviewer|
205
- # store the reviewer
206
- end
+```rb
+event :review, :transitions_to => :being_reviewed do |reviewer|
+ # store the reviewer
207
+end
208
+```
209
210
We've noticed, that mixing the list of events and states with the blocks
211
invoked for particular transitions leads to a bumpy and poorly readable code
0 commit comments