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
7 8 9 |
# File 'lib/generators/swagger/layout/layout_generator.rb', line 7 def self.source_root File.('../templates', __FILE__) end |
Instance Method Details
#create_swagger_layout ⇒ Object
11 12 13 |
# File 'lib/generators/swagger/layout/layout_generator.rb', line 11 def create_swagger_layout template "swagger.html.#{template_engine.underscore}", File.join('app', 'views', 'layouts', "swagger.html.#{template_engine.underscore}") end |