Class: EnumStyle::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- EnumStyle::Generators::InstallGenerator
- Defined in:
- lib/generators/enum_style/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
7 8 9 |
# File 'lib/generators/enum_style/install_generator.rb', line 7 def self.source_root @_config_source_root ||= File.("../templates", __FILE__) end |
Instance Method Details
#generate_style_yml ⇒ Object
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 |