Sha256: c5dfce801e3cc51c01c90400f221f6dd63f9af168bb39ed006fb4ff3d5afb553
Contents?: true
Size: 639 Bytes
Versions: 4
Compression:
Stored size: 639 Bytes
Contents
Description: Creates an EnumerateIt class and its locale file Example: rails g enumerate_it:enum CivilStatus single married divorced widower concubinage separated stable This will create: app/enumerations/civil_status.rb with `associate_values :single, :married, :divorced, :widower, :concubinage, :separated, :stable` config/locales/civil_status.yml rails g enumerate_it:enum CivilStatus single:1 married:2 divorced:3 widower:4 This will create: app/enumerations/civil_status.rb with `associate_values single: 1, married: 2, divorced: 3, widower: 4` config/locales/civil_status.yml
Version data entries
4 entries across 4 versions & 1 rubygems