Sha256: 77bf95017b7802df059782d8649b0c0b7b190699294c223def6aa4bb03dcb821

Contents?: true

Size: 799 Bytes

Versions: 3

Compression:

Stored size: 799 Bytes

Contents

require 'sass/rails'

module SwaggerUiEngine
  class Engine < ::Rails::Engine
    isolate_namespace SwaggerUiEngine

    config.to_prepare do
      Rails.application.config.assets.precompile += %w(
        swagger_ui_engine/lib/typography.css
        swagger_ui_engine/lib/reset.css
        swagger_ui_engine/lib/screen.css
        swagger_ui_engine/lib/print.css
        swagger_ui_engine/custom.css
        swagger_ui_engine/print.css
        swagger_ui_engine/logo_small.png
        swagger_ui_engine/favicon-32x32.png
        swagger_ui_engine/favicon-16x16.png
        swagger_ui_engine/lang/*.js
      )

      Rails.application.config.assets.paths << Rails.root.join('vendor', 'assets', 'fonts')
      Rails.application.config.assets.precompile << /\.(?:svg|eot|woff|ttf)$/
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
swagger_ui_engine-1.1.2 lib/swagger_ui_engine/engine.rb
swagger_ui_engine-1.1.1 lib/swagger_ui_engine/engine.rb
swagger_ui_engine-1.1.0 lib/swagger_ui_engine/engine.rb