Class: Generators::Avo::InstallGenerator

Inherits:
BaseGenerator
  • Object
show all
Defined in:
lib/generators/avo/install_generator.rb

Instance Method Summary collapse

Methods inherited from BaseGenerator

#initialize

Constructor Details

This class inherits a constructor from Generators::Avo::BaseGenerator

Instance Method Details

#create_initializer_fileObject



12
13
14
15
16
17
18
# File 'lib/generators/avo/install_generator.rb', line 12

def create_initializer_file
  route "mount Avo::Engine, at: Avo.configuration.root_path"

  template "initializer/avo.tt", "config/initializers/avo.rb"

  create_resources
end