mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
update readme
This commit is contained in:
parent
49fc631405
commit
92f7b15cf8
1 changed files with 14 additions and 0 deletions
14
README.md
14
README.md
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue