From a336a0f36737862217e90c1fbbdf2be8c452c201 Mon Sep 17 00:00:00 2001 From: Jeff Wigal Date: Wed, 9 Dec 2020 17:03:01 -0500 Subject: [PATCH 1/2] allow custom css url --- app/views/grape_swagger_rails/application/index.html.erb | 3 +++ lib/grape-swagger-rails.rb | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/grape_swagger_rails/application/index.html.erb b/app/views/grape_swagger_rails/application/index.html.erb index 7131627..e1c3954 100644 --- a/app/views/grape_swagger_rails/application/index.html.erb +++ b/app/views/grape_swagger_rails/application/index.html.erb @@ -5,6 +5,9 @@ <%= stylesheet_link_tag 'grape_swagger_rails/application.css' %> + <% if GrapeSwaggerRails.options.extra_css_path %> + <%= stylesheet_link_tag GrapeSwaggerRails.options.extra_css_path %> + <% end %> <%= javascript_include_tag 'grape_swagger_rails/application.js' %>