Sha256: 9667c65c8ddc891241ae6a1cd0806cd18393e008b8cf0b33b1f32c0b0696af95
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 Bytes
Contents
require "grape-swagger-ui/version" require "grape-swagger-ui/routes" module Grape module Swagger module Ui class Engine < ::Rails::Engine config.draw_swagger_routes = true initializer 'grape-swagger-ui.draw_routes' do |app| if config.draw_swagger_routes && (!$rails_rake_task || (ARGV[0] =~ /routes\Z/)) app.routes.append{ Grape::Swagger::Ui::Routes.draw(self) } end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nedforce-grape-swagger-ui-0.2.0 | lib/grape-swagger-ui.rb |