brainspec / enumerize

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

Proper cast of boolean attributes. #435

Closed nashby closed 11 months ago

nashby commented 11 months ago

To allow ActiveRecord decide how to cast value from DB before we use it to find enumerized value we can rely on @subclass.cast method.

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