This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
sbarron (author)
Sun Jul 23 12:41:31 -0700 2006
commit 64de098b3ef9e865bfa43c52040c9f7677d0886d
tree ff5f19a25a50d6d428a54fda8b8326b20480eb47
parent 334d29eb518dffed3c37e27faf1387d8f5c31995
tree ff5f19a25a50d6d428a54fda8b8326b20480eb47
parent 334d29eb518dffed3c37e27faf1387d8f5c31995
| name | age | message | |
|---|---|---|---|
| |
CHANGELOG | ||
| |
MIT-LICENSE | Sun Jan 15 09:08:57 -0800 2006 | |
| |
README | Fri Jan 20 16:34:14 -0800 2006 | |
| |
Rakefile | Sun Jan 15 09:29:13 -0800 2006 | |
| |
TODO | Fri Jan 20 12:25:05 -0800 2006 | |
| |
init.rb | Fri Jul 14 07:50:09 -0700 2006 | |
| |
lib/ | ||
| |
test/ | Sun Jul 23 12:41:31 -0700 2006 |
README
= Acts As State Machine This act gives an Active Record model the ability to act as a finite state machine (FSM). Acquire via subversion at: http://elitists.textdriven.com/svn/plugins/acts_as_state_machine/trunk If prompted, use the user/pass anonymous/anonymous. == Example class Order < ActiveRecord::Base acts_as_state_machine :initial => :opened state :opened state :closed, :enter => Proc.new {|o| Mailer.send_notice(o)} state :returned event :close do transitions :to => :closed, :from => :opened end event :return do transitions :to => :returned, :from => :closed end end o = Order.create o.close! # notice is sent by mailer o.return!








