From 33a6e0c53cc7808b95c992ea56d623b714a94d9e Mon Sep 17 00:00:00 2001 From: David Hempy Date: Sat, 22 Nov 2014 22:13:14 -0500 Subject: [PATCH] Update README.md Swap :if / :unless examples to make more sense. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 82802a1..f4421e1 100644 --- a/README.md +++ b/README.md @@ -270,11 +270,11 @@ If you prefer a more Ruby-like guard syntax, you can use `if` and `unless` as we ```ruby event :clean do - transitions :from => :running, :to => :cleaning, :unless => :cleaning_needed? + transitions :from => :running, :to => :cleaning, :if => :cleaning_needed? end event :sleep do - transitions :from => :running, :to => :sleeping, :if => :cleaning_needed? + transitions :from => :running, :to => :sleeping, :unless => :cleaning_needed? end end ```