Sha256: 441989f972ae2f2aee6ad462e5696a0055e90cd1a2cbfbb92985b120e68dddda

Contents?: true

Size: 609 Bytes

Versions: 7

Compression:

Stored size: 609 Bytes

Contents

require "webshims-rails/version"

module Webshims
  module Rails
    class Engine < ::Rails::Engine
      # Everything in the webshims directory should be precompiled, since
      # it all needs to be accessed dynamically depending on the browser.
      # Turning this off by default for Rails 4, since in that case, users
      # are already using a workaround and likely do not need to precompile.
      unless ::Rails::VERSION::MAJOR >= 4
        initializer :append_webshims_assets_path, :group => :all do |app|
          app.config.assets.precompile << /webshims/
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
webshims-rails-1.16.0 lib/webshims-rails.rb
webshims-rails-1.15.10 lib/webshims-rails.rb
webshims-rails-1.15.9 lib/webshims-rails.rb
webshims-rails-1.15.8 lib/webshims-rails.rb
webshims-rails-1.15.6.4 lib/webshims-rails.rb
webshims-rails-1.15.6.3 lib/webshims-rails.rb
webshims-rails-1.15.6.2 lib/webshims-rails.rb