mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
Minor fixes / additions to the README file (enum-related section)
This commit is contained in:
parent
c499a6e149
commit
2ab6706a3f
1 changed files with 7 additions and 6 deletions
13
README.md
13
README.md
|
@ -302,14 +302,15 @@ end
|
|||
|
||||
You can explicitly pass the name of the method which provides access
|
||||
to the enumeration mapping as a value of ```enum```, or you can simply
|
||||
set it to true. In the latter case AASM will try to use pluralized
|
||||
column name to access possible enum states.
|
||||
set it to ```true```. In the latter case AASM will try to use
|
||||
pluralized column name to access possible enum states.
|
||||
|
||||
Furthermore, if your column has integer type (which is normally the
|
||||
case when you ), you can omit ```:enum``` setting - AASM auto-detects
|
||||
this situation and enabled enum support. If anything goes wrong, you
|
||||
can disable enum functionali and fall back to default behavior by
|
||||
setting ```:enum => false```.
|
||||
case when you're working with Rails enums), you can omit ```:enum```
|
||||
setting --- AASM auto-detects this situation and enabled enum
|
||||
support. If anything goes wrong, you can disable enum functionality
|
||||
and fall back to the default behavior by setting ```:enum``` to
|
||||
```false```.
|
||||
|
||||
### Sequel
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue