Sha256: 8350c14c2370b5d5e58ec2bcae6cfc684f5e88e25b40c528db6c263b48978717

Contents?: true

Size: 293 Bytes

Versions: 2

Compression:

Stored size: 293 Bytes

Contents

module Rswag3
  module Api
    class Configuration
      attr_accessor :swagger_root, :swagger_filter

      def resolve_swagger_root(env)
        path_params = env['action_dispatch.request.path_parameters'] || {}
        path_params[:swagger_root] || swagger_root
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rswag3-api-0.0.2 lib/rswag3/api/configuration.rb
rswag3-api-0.0.1 lib/rswag3/api/configuration.rb