1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

Update README.md

This commit is contained in:
kivi 2012-02-05 13:32:32 +01:00
parent 7165ec6943
commit eeae664019

View file

@ -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