Sha256: 22aec1a1ad286ce3a4886e1cb60175d176574cb15e3c5cfce2d6cd1c1d681296
Contents?: true
Size: 651 Bytes
Versions: 18
Compression:
Stored size: 651 Bytes
Contents
#{@lang}: active_enum: # Place enum translations for each name defined in the enum # # class Sex < ActiveEnum::Base # value 1 => 'male' # value 2 => 'female' # end # # is defined as # # sex: # male: Male # female: Female # # For namesapced enums in a model # # class Person < ActiveRecord::Base # enumerate :sex do # value 1 => 'male' # value 2 => 'female' # end # end # # Nest the translations under the underscored model name # # person: # sex: # male: Male # female: Female
Version data entries
18 entries across 18 versions & 1 rubygems