Sha256: 6a5579e35cafe9c80cf58206bc5fdbbb1d1d0cc6118f8d85000083060b4cee5f

Contents?: true

Size: 433 Bytes

Versions: 2

Compression:

Stored size: 433 Bytes

Contents

module SwaggerUiStaticEngine
  class Engine < ::Rails::Engine
    isolate_namespace SwaggerUiStaticEngine
    cattr_accessor :mount_path
    cattr_accessor :swagger_url

    # Initializer to combine this engines static assets with the static assets of the hosting site.
    initializer "static assets" do |app|
      app.middleware.insert_before(::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
swagger_ui_static_engine-2.1.4.2 lib/swagger_ui_static_engine/engine.rb
swagger_ui_static_engine-2.1.4.1 lib/swagger_ui_static_engine/engine.rb