Class: Uchi::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_namespace_in_routesObject



5
6
7
# File 'lib/generators/uchi/install/install_generator.rb', line 5

def create_namespace_in_routes
  route "namespace :uchi do\nend"
end

#mount_engineObject



9
10
11
# File 'lib/generators/uchi/install/install_generator.rb', line 9

def mount_engine
  route "mount Uchi::Engine, at: \"/uchi\""
end