From 656984f8b2cb219a7b452eb8f3f20e97dab66239 Mon Sep 17 00:00:00 2001 From: Scott Barron Date: Mon, 29 Dec 2008 10:05:07 -0500 Subject: [PATCH] Fix misleading example which uses a 'new' state. A state called 'new' would currently not work with activerecord. --- README.rdoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rdoc b/README.rdoc index ba44fef..1bfaaa7 100644 --- a/README.rdoc +++ b/README.rdoc @@ -41,19 +41,19 @@ Here's a quick example highlighting some of the features. class Conversation include AASM - aasm_initial_state :new + aasm_initial_state :unread - aasm_state :new + aasm_state :unread aasm_state :read aasm_state :closed aasm_event :view do - transitions :to => :read, :from => [:new] + transitions :to => :read, :from => [:unread] end aasm_event :close do - transitions :to => :closed, :from => [:read, :new] + transitions :to => :closed, :from => [:read, :unread] end end