human_enum 0.1.2
This gem allows you to specify enum value translations like any other ActiveRecord attribute and adds helper methods to get humanized translations of enum values
Gemfile:
=
複製
已複製
安裝:
=
Runtime 相依性套件 (1):
activerecord
> 5.0.0
Development 相依性套件 (10):
bundler
~> 2.0
guard
~> 2.15
guard-rspec
~> 4.7
guard-rubocop
~> 1.3
rake
~> 10.0
rspec
~> 3.0
rubocop
~> 0.72.0
rubocop-performance
~> 1.5
rubocop-rspec
~> 1.36
sqlite3
~> 1.4