brainspec / enumerize

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

ActiveModel::Type#as_json was removed from Rails master. #415

Closed nashby closed 1 year ago

nashby commented 1 year ago

Because it wasn't providing any useful info and was a bit misleading since json output was the same for all types.

I think we can keep our as_json method but just remove subtype from it.