From aaf778781d8b0e7871daabaf8dd96f1c9880cc66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20B=C3=B6ttger?= Date: Thu, 20 Mar 2014 21:18:54 +0100 Subject: [PATCH] use the short mapping --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fa30f86..4e2866b 100644 --- a/README.md +++ b/README.md @@ -431,13 +431,13 @@ Given the `Job` class from above: ```ruby job = Job.new -job.aasm.states.map { | state | state.name } +job.aasm.states.map(&:name) => [:sleeping, :running, :cleaning] -job.aasm.states(:permissible => true).map { | state | state.name } +job.aasm.states(:permissible => true).map(&:name) => [:running] job.run -job.aasm.states(:permissible => true).map { | state | state.name } +job.aasm.states(:permissible => true).map(&:name) => [:cleaning, :sleeping] job.aasm.events