masciugo / genealogy

Make ActiveRecord model act as a pedigree
MIT License
30 stars 17 forks source link

Support activerecord enums #4

Closed mjc closed 10 years ago

mjc commented 10 years ago

This patch allows the use of ActiveRecord 4.1 enum for the sex attribute.

If male? and female? exist it will use them, and also values longer than two characters will be allowed.

In order for this to work, the enum must be above has_parent in the model.

masciugo commented 10 years ago

that's ok but the first commit is redundant as explained here. Also the note about the order of enum and has_parents needs to be added to the readme in the installation section

masciugo commented 10 years ago

should be ok in version 1.3.0. Can I have a feedback please?