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.4.28 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.27 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.26 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.25 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.24 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.23 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.22 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.21 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.20 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.19 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.18 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.17 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.16 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.15 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.14 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.13 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.12 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.11 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.10 spec/dummy_app/config/initializers/quiet_assets.rb
piggybak-0.4.9 spec/dummy_app/config/initializers/quiet_assets.rb