README.rdoc in eric-aasm-2.0.2 vs README.rdoc in eric-aasm-2.0.2.1
- old
+ new
@@ -42,45 +42,21 @@
include AASM
aasm_initial_state :new
aasm_state :new
- aasm_state :read, :enter => :mark_thread_as_read
+ aasm_state :read
aasm_state :closed
aasm_event :view do
- transitions :to => :read, :from => [:new],
- :on_transition => :send_received_receipt, :guard => :user_authorized
+ transitions :to => :read, :from => [:new]
end
aasm_event :close do
transitions :to => :closed, :from => [:read, :new]
end
end
-
-
-== Explanation of transitions
-
-The current state machine has the following process. If we were to call
-<tt>Conversation#view!</tt>, we would get:
-
- state:new
- |
- | <-- :exit called on state[new]
- |
- | <-- :guard called on state[read]
- |
- | <-- :on_transition called on state[read]
- |
- | <-- aasm_current_state set to "read"
- |
- | <-- :success called on state[read]
- |
- | <-- :enter called on state[read]
- |
- state:read
-
= Other Stuff
Author:: Scott Barron <scott at elitists dot net>
License:: Copyright 2006, 2007, 2008 by Scott Barron.