diff --git a/CHANGELOG.md b/CHANGELOG.md index e7f78cd..20664a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## master +## 1.1.4 +* Support to Rails 6.1 + ## 1.1.3 * Turns compatible with sprockets 4 * Application Controller inheritance diff --git a/README.md b/README.md index a3ea5b8..f8db045 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Include [swagger-ui](https://github.com/swagger-api/swagger-ui) as Rails engine Swagger UI version | Rails version ------------------ | ---------------- -2.2.10 | >= 4.2, <6 +2.2.10 | >= 4.2, <= 6.1.x ## Features * Supports API documentation versioning / multiple APIs documentation diff --git a/app/controllers/swagger_ui_engine/swagger_docs_controller.rb b/app/controllers/swagger_ui_engine/swagger_docs_controller.rb index 1109c4a..20c69ba 100644 --- a/app/controllers/swagger_ui_engine/swagger_docs_controller.rb +++ b/app/controllers/swagger_ui_engine/swagger_docs_controller.rb @@ -3,13 +3,12 @@ class SwaggerDocsController < SwaggerUiEngine::ApplicationController include SwaggerUiEngine::ConfigParser include SwaggerUiEngine::OauthConfigParser - add_template_helper SwaggerUiEngine::TranslationHelper + helper SwaggerUiEngine::TranslationHelper layout 'swagger_ui_engine/layouts/swagger', except: %w(oauth2) before_action :set_configs, :set_oauth_configs - def oauth2 - end + def oauth2; end def index # backward compatibility for defining single doc url in strings diff --git a/app/views/swagger_ui_engine/swagger_docs/show.html.erb b/app/views/swagger_ui_engine/swagger_docs/show.html.erb index b6a6a4f..358d208 100644 --- a/app/views/swagger_ui_engine/swagger_docs/show.html.erb +++ b/app/views/swagger_ui_engine/swagger_docs/show.html.erb @@ -1,5 +1,9 @@ <% content_for(:head) do %>