Skip to content

Commit

Permalink
Documentation: callbacks around events
Browse files Browse the repository at this point in the history
  • Loading branch information
ramn committed Sep 4, 2011
1 parent 2585c77 commit fc99d90
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Expand Up @@ -117,6 +117,23 @@ This example uses a few of the more complex features available.
end
```

## Callbacks around events
```ruby
class Relationship
include AASM

aasm_state :dating
aasm_state :married

aasm_event :get_married
:before => :make_vows,
:after => :eat_wedding_cake
transitions :to => :married, :from => [:dating]
end
end
```


# Other Stuff #

Author:: Scott Barron <scott at elitists dot net>
Expand Down

0 comments on commit fc99d90

Please sign in to comment.