mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
parent
0309ff2166
commit
198257f510
@ -7,7 +7,9 @@ module SwaggerRails
|
|||||||
initializer 'swagger_rails.initialize' do |app|
|
initializer 'swagger_rails.initialize' do |app|
|
||||||
middleware.use SwaggerJson, SwaggerRails.config
|
middleware.use SwaggerJson, SwaggerRails.config
|
||||||
|
|
||||||
|
if app.config.respond_to?(:assets)
|
||||||
app.config.assets.precompile += [ 'swagger-ui/*' ]
|
app.config.assets.precompile += [ 'swagger-ui/*' ]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user