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

update readme

This commit is contained in:
Jack Thorne 2014-12-02 17:46:11 -08:00
parent 49fc631405
commit 92f7b15cf8

View file

@ -464,6 +464,20 @@ class Job
end
```
### Redis
AASM also supports persistence in Redis.
Make sure to include Redis::Objects before you include AASM.
```ruby
class User
include Redis::Objects
include AAASM
aasm do
end
end
```
### Automatic Scopes
AASM will automatically create scope methods for each state in the model.