Sha256: ff835c86efb9a092e94df9b632bea7698b1d052a287a3d3c9ef58d1bfe85d3ef

Contents?: true

Size: 407 Bytes

Versions: 7

Compression:

Stored size: 407 Bytes

Contents

module Swagger
  module Generators
    class LayoutGenerator < ::Rails::Generators::Base
      desc 'Setup a dedicated layout for the swagger-ui'

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

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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
nedforce-grape-swagger-ui-0.2.0 lib/generators/swagger/layout/layout_generator.rb
grape-swagger-ui-0.1.0 lib/generators/swagger/layout/layout_generator.rb
grape-swagger-ui-0.0.9 lib/generators/swagger/layout/layout_generator.rb
grape-swagger-ui-0.0.4 lib/generators/swagger/layout/layout_generator.rb
grape-swagger-ui-0.0.3 lib/generators/swagger/layout/layout_generator.rb
grape-swagger-ui-0.0.2 lib/generators/swagger/layout/layout_generator.rb
grape-swagger-ui-0.0.1 lib/generators/swagger/layout/layout_generator.rb