brainspec / enumerize

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

Enumerize gem vs ActiveRecord::Enum #403

Closed fade2black closed 2 years ago

fade2black commented 2 years ago

Does Enumerize gem do the same thing as ActiveRecord::Enum does? In other words, is there any specific reason to choose Enumerize gem over ActiveRecord::Enum?

nashby commented 2 years ago

Enumerize has more features than AR::Enum. To name a few: proper i18n support, support for multiple enum values https://github.com/brainspec/enumerize#array-like-attributes, forms integration