Sha256: 03c1ec13c25587e84fe26abeb01752925784ae44def1a4d9fd0a39776bf09884

Contents?: true

Size: 195 Bytes

Versions: 5

Compression:

Stored size: 195 Bytes

Contents

class ClassyEnumGenerator < Rails::Generator::NamedBase

  def manifest
    record do |m|
      m.directory 'app/enums'
      m.template "enum.rb", "app/enums/#{file_name}.rb"
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
classy_enum-0.9.1 generators/classy_enum_generator.rb
classy_enum-0.8.1 generators/classy_enum_generator.rb
classy_enum-0.8.0 generators/classy_enum_generator.rb
classy_enum-0.7.1 generators/classy_enum_generator.rb
classy_enum-0.7.0 generators/classy_enum_generator.rb