From 575d228590ad5954fe12d391007e195767dcb935 Mon Sep 17 00:00:00 2001 From: Brad Robertson Date: Fri, 7 Nov 2014 15:14:39 -0500 Subject: [PATCH] don't cache the base_path --- lib/grape-swagger.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/grape-swagger.rb b/lib/grape-swagger.rb index 7bf00863..8d544b2b 100644 --- a/lib/grape-swagger.rb +++ b/lib/grape-swagger.rb @@ -76,7 +76,6 @@ def self.setup(options) @@markdown = options[:markdown] ? GrapeSwagger::Markdown.new(options[:markdown]) : nil @@hide_format = options[:hide_format] api_version = options[:api_version] - base_path = options[:base_path] authorizations = options[:authorizations] root_base_path = options[:root_base_path] extra_info = options[:info] @@ -211,7 +210,7 @@ def self.setup(options) apis: apis } - base_path = parse_base_path(base_path, request) + base_path = parse_base_path(options[:base_path], request) api_description[:basePath] = base_path if base_path && base_path.size > 0 && root_base_path != false api_description[:models] = parse_entity_models(models) unless models.empty? api_description[:authorizations] = authorizations if authorizations