Class: Apipie::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#add_routeObject



21
22
23
# File 'lib/generators/apipie/install/install_generator.rb', line 21

def add_route
  route("apipie")
end

#create_initializerObject



17
18
19
# File 'lib/generators/apipie/install/install_generator.rb', line 17

def create_initializer
  template 'initializer.rb.erb', 'config/initializers/apipie.rb'
end