From 13d42d02ba311aa496294dcdb92f0d4479201633 Mon Sep 17 00:00:00 2001 From: Anil Date: Thu, 1 Oct 2015 20:20:53 +0530 Subject: [PATCH] Update Readme to include states_for_select method --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index b12d80f..b795647 100644 --- a/README.md +++ b/README.md @@ -704,6 +704,10 @@ job.aasm.states(:permitted => true).map(&:name) # show all possible (triggerable) events (allowed by transitions) job.aasm.events.map(&:name) => [:sleep] + +# list states for select +Job.aasm.states_for_select +=> [["Sleeping", "sleeping"], ["Running", "running"], ["Cleaning", "cleaning"]] ```