Sha256: 715dc1cceb953ad6fa95709390981b427ac78e68751f7ace7fdb902f6ab90664

Contents?: true

Size: 557 Bytes

Versions: 7

Compression:

Stored size: 557 Bytes

Contents

module Swagger
  class Engine < ::Rails::Engine

    initializer :assets do |config|
      Rails.application.config.assets.precompile += %w{ swagger-ui.js }
      Rails.application.config.assets.precompile += %w{ swagger-oauth.js }
      Rails.application.config.assets.precompile += %w{ swagger-ui.css }
      Rails.application.config.assets.precompile += %w{ swagger-ui/reset.css }
      Rails.application.config.assets.precompile += %w{ swagger-ui/screen.css }
      Rails.application.config.assets.paths << root.join("app", "assets")
    end

  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
swagger-ui_rails_audionerd-2.3.2 lib/swagger-ui_rails/engine.rb
swagger-ui_rails_audionerd-2.3.1 lib/swagger-ui_rails/engine.rb
swagger-ui_rails_audionerd-2.3.0 lib/swagger-ui_rails/engine.rb
swagger-ui_rails_audionerd-2.1.1 lib/swagger-ui_rails/engine.rb
swagger-ui_rails-2.1.0.alpha.7.1 lib/swagger-ui_rails/engine.rb
swagger-ui_rails-2.1.0.pre.alpha.7.1 lib/swagger-ui_rails/engine.rb
swagger-ui_rails-2.1.0.pre.alpha.7 lib/swagger-ui_rails/engine.rb