1
0
Fork 0
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:
Konstantin Burnaev 2014-05-15 18:09:22 +10:00
parent c499a6e149
commit 2ab6706a3f

View file

@ -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