Sha256: bab3b9aacf5ce8e0de812376294864ea96e2766fa9a2d9dcff7cda03179edb36

Contents?: true

Size: 457 Bytes

Versions: 53

Compression:

Stored size: 457 Bytes

Contents

# https://github.com/rails/rails/issues/3164
# http://stackoverflow.com/questions/6312448/how-to-disable-logging-of-asset-pipeline-sprockets-messages-in-rails-3-1

Rails.application.assets.logger = Logger.new('/dev/null')
Rails::Rack::Logger.class_eval do
  def before_dispatch_with_quiet_assets(env)
    before_dispatch_without_quiet_assets(env) unless env['PATH_INFO'].index("/assets/") == 0
  end
  alias_method_chain :before_dispatch, :quiet_assets
end

Version data entries

53 entries across 53 versions & 3 rubygems

Version Path
piggybak-0.6.2 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.6.1 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.6.0 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.5.5 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.5.4 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.5.3 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.5.2 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.5.1 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.5.0 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.39 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.38 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.37 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.36 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.35 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.34 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.33 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.32 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.31 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.30 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.29 spec/dummy_app/config/initializers/quiet_assets.rb