From 2d5010c7eba2cd1ebec0043b0aa4850647feece9 Mon Sep 17 00:00:00 2001 From: Andreas Wenk Date: Mon, 8 Dec 2014 14:58:42 +0100 Subject: [PATCH] Fix example Instance-level inspection The example for retrieving only permitted events returns an Array of Aasm Objects but not an Array of event names as symbols. This is fixed. --- README_FROM_VERSION_3_TO_4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README_FROM_VERSION_3_TO_4.md b/README_FROM_VERSION_3_TO_4.md index 726eda9..4213dc1 100644 --- a/README_FROM_VERSION_3_TO_4.md +++ b/README_FROM_VERSION_3_TO_4.md @@ -139,7 +139,7 @@ to ```ruby job = Job.new -job.aasm.events(:permitted => true) +job.aasm.events(:permitted => true).map(&:name) # => [:run] ```