Class: Swagger::Generators::LayoutGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/swagger/layout/layout_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



6
7
8
# File 'lib/generators/swagger/layout/layout_generator.rb', line 6

def self.source_root
  File.expand_path('../templates', __FILE__)
end

Instance Method Details

#create_swagger_layoutObject



10
11
12
# File 'lib/generators/swagger/layout/layout_generator.rb', line 10

def create_swagger_layout        
  template 'swagger.html.haml', File.join('app', 'views', 'layouts', 'swagger.html.haml')
end