brainspec / enumerize

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

Properly serialize boolean values. #433

Closed nashby closed 11 months ago

nashby commented 11 months ago

This fixes a bug where the value of a false boolean attribute was not properly serialized because it was treated as ruby's false in condition and that condition was never met.

Fixes https://github.com/brainspec/enumerize/issues/430