From 71328a9856734dda82620f42e5161c7a74696145 Mon Sep 17 00:00:00 2001
From: Mikel Lindsaar <raasdnil@gmail.com>
Date: Mon, 18 Jan 2010 17:20:25 +1100
Subject: Fixing up state machine docs

---
 activemodel/README | 13 +++++++++++++
 1 file changed, 13 insertions(+)

(limited to 'activemodel/README')

diff --git a/activemodel/README b/activemodel/README
index 95d1c63f75..7d18571227 100644
--- a/activemodel/README
+++ b/activemodel/README
@@ -154,3 +154,16 @@ functionality from the following modules:
   
   {Learn more}[link:classes/ActiveModel/Serialization.html]
     
+
+* Turning your object into a finite State Machine
+
+    ActiveModel::StateMachine provides a clean way to include all the methods
+    you need to transform your object into a finite State Machine...
+
+    light = TrafficLight.new
+    light.current_state       #=> :red
+    light.change_color!       #=> true
+    light.current_state       #=> :green
+
+  {Learn more}[link:classes/ActiveModel/StateMachine.html]
+
-- 
cgit v1.2.3