Skip to content

Commit

Permalink
Add a section for Sequel support.
Browse files Browse the repository at this point in the history
  • Loading branch information
godfat committed May 4, 2014
1 parent c1461fb commit 9c5b236
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Expand Up @@ -278,6 +278,23 @@ class Job < ActiveRecord::Base
end
```

### Sequel

AASM also supports Sequel besides ActiveRecord.

```ruby
class Job < Sequel::Model
include AASM

aasm do # default column: aasm_state
...
end
end
```

However it's not yet feature completed as ActiveRecord. For example,
no scope would be defined as in ActiveRecord. See _Automatic Scopes_.

### Mongoid

AASM also supports persistence to Mongodb if you're using Mongoid. Make sure
Expand Down

0 comments on commit 9c5b236

Please sign in to comment.