Class: EnumStyle::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/enum_style/install_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



7
8
9
# File 'lib/generators/enum_style/install_generator.rb', line 7

def self.source_root
  @_config_source_root ||= File.expand_path("../templates", __FILE__)
end

Instance Method Details

#generate_style_ymlObject



11
12
13
14
# File 'lib/generators/enum_style/install_generator.rb', line 11

def generate_style_yml

  template 'enum_style.yml', 'config/enum_style.yml'
end