Sha256: ae86304ff79dfdc024089754c1d898362fab711c169fbf502013f4a320801be2

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

module SwaggerUiStaticEngine
  class Engine < ::Rails::Engine
    isolate_namespace SwaggerUiStaticEngine
    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

1 entries across 1 versions & 1 rubygems

Version Path
swagger_ui_static_engine-2.1.4.3 lib/swagger_ui_static_engine/engine.rb