brainspec / enumerize

Enumerated attributes with I18n and ActiveRecord/Mongoid support
MIT License
1.72k stars 190 forks source link

Define Type#cast instead of deserialize to fix serialization issue. #424

Closed nashby closed 1 year ago

nashby commented 1 year ago

Type#deserialize by default calls Type#cast so we can keep one.

Closes https://github.com/brainspec/enumerize/pull/404