Class: Lina::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



8
9
10
# File 'lib/generators/lina/install/install_generator.rb', line 8

def copy_initializer
  template "lina.rb", "config/initializers/lina.rb"
end

#insert_routerObject



12
13
14
# File 'lib/generators/lina/install/install_generator.rb', line 12

def insert_router
  route "api_for '/apidoc'"
end