Sha256: 114a741eabc4390c2e4bf7ff726e2c17cb4fdb358baa0cc379c8052508ec1f01

Contents?: true

Size: 640 Bytes

Versions: 7

Compression:

Stored size: 640 Bytes

Contents

Description:
    Creates an EnumerateIt class an its locale file

Example:
    rails g enumerate_it 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 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 => 2, :widower => 4`
        config/locales/civil_status.yml

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
enumerate_it-1.0.0 lib/generators/USAGE
enumerate_it-0.7.17 lib/generators/USAGE
enumerate_it-0.7.16 lib/generators/USAGE
enumerate_it-0.7.15 lib/generators/USAGE
enumerate_it-0.7.14 lib/generators/USAGE
enumerate_it-0.7.13 lib/generators/USAGE
enumerate_it-0.7.12 lib/generators/USAGE