From 10196ef54b791ff71668e7096897266f835c374a Mon Sep 17 00:00:00 2001 From: Jahangir Zinedine Date: Sat, 23 Nov 2013 00:23:26 +0330 Subject: [PATCH] Update README.md The first parameter of initialize needs to be a class not an object instance. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 511c25a0..77a57a41 100644 --- a/README.md +++ b/README.md @@ -913,7 +913,7 @@ class Vehicle # transitions defined from the source above def machine vehicle = self - @machine ||= Machine.new(vehicle, :initial => :parked, :action => :save) do + @machine ||= Machine.new(Vehicle, :initial => :parked, :action => :save) do vehicle.transitions.each {|attrs| transition(attrs)} end end