mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-23 06:16:42 +00:00
Ensure all swagger-ui assets get included in asset precompile
This commit is contained in:
parent
f716c4f054
commit
f321207285
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,6 +5,7 @@ spec/dummy/db/*.sqlite3
|
||||
spec/dummy/db/*.sqlite3-journal
|
||||
spec/dummy/log/*.log
|
||||
spec/dummy/tmp/
|
||||
spec/dummy/public/assets
|
||||
spec/dummy/.sass-cache
|
||||
spec/generators/swagger_rails/tmp
|
||||
bower_components/*
|
||||
|
||||
@ -6,6 +6,8 @@ module SwaggerRails
|
||||
|
||||
initializer 'swagger_rails.initialize' do |app|
|
||||
middleware.use SwaggerJson, SwaggerRails.config
|
||||
|
||||
app.config.assets.precompile += [ 'swagger-ui/*' ]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user