Class: Swagger::Generators::LayoutGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Swagger::Generators::LayoutGenerator
- Defined in:
- lib/generators/swagger/layout/layout_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
6 7 8 |
# File 'lib/generators/swagger/layout/layout_generator.rb', line 6 def self.source_root File.('../templates', __FILE__) end |
Instance Method Details
#create_swagger_layout ⇒ Object
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 |