The Ruby ORM DataMapper as a Enum property which is really handy, but you often want to list the available options in for example a form. Unfortunately it's not well documented, but this gist shows you how:
| 1 2 3 4 5 6 7 8 |
|
The Ruby ORM DataMapper as a Enum property which is really handy, but you often want to list the available options in for example a form. Unfortunately it's not well documented, but this gist shows you how:
| 1 2 3 4 5 6 7 8 |
|