Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To get selector's item, Typus uses plualized name's method. https://github.com/typus/typus/wiki/customization-selectors But, when Rails4.1 released. Method name confilected ActiveRecord::Enum's method name. so, I research other admin framework gems, and I think best way to implement enum selector. 1. rails_admin rails_admin select new method name is like "{column name}_enum" railsadminteam/rails_admin#1993 2. active admin active admin select add to parameter in "collection" option. http://stackoverflow.com/questions/23414880/how-to-properly-configure-rails-4-1-enums-in-activeadmin and, ActiveRecord::Enum have't I18n. so liker a below gems were released to support this function. * https://github.com/brainspec/enumerize * https://github.com/zmbacker/enum_help so, We should avoid ActieRecord::Enum i18n gem's implement and use convenient. I'll follow rails_admin's way.
- Loading branch information