mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
Update README.md
This commit is contained in:
parent
7165ec6943
commit
eeae664019
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ This example uses a few of the more complex features available.
|
||||||
class Relationship
|
class Relationship
|
||||||
include AASM
|
include AASM
|
||||||
|
|
||||||
aasm :column => :status
|
aasm :column => :status do
|
||||||
state :dating, :enter => :make_happy, :exit => :make_depressed
|
state :dating, :enter => :make_happy, :exit => :make_depressed
|
||||||
state :intimate, :enter => :make_very_happy, :exit => :never_speak_again
|
state :intimate, :enter => :make_very_happy, :exit => :never_speak_again
|
||||||
state :married, :enter => :give_up_intimacy, :exit => :buy_exotic_car_and_wear_a_combover
|
state :married, :enter => :give_up_intimacy, :exit => :buy_exotic_car_and_wear_a_combover
|
||||||
|
|
Loading…
Reference in a new issue