Sha256: bee58424fc1693a4136383a34af54bc8986f56b75c7ec79e17b08c54164077cf

Contents?: true

Size: 320 Bytes

Versions: 9

Compression:

Stored size: 320 Bytes

Contents

Rails::Rack::Logger.class_eval do
  def call_with_quiet_assets(env)
    previous_level = Rails.logger.level
    Rails.logger.level = Logger::ERROR if env['PATH_INFO'] =~ %r{^/assets/}
    call_without_quiet_assets(env)
  ensure
    Rails.logger.level = previous_level
  end
  alias_method_chain :call, :quiet_assets
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_db-1.6.0 test/standalone/config/initializers/quiet_assets.rb
rails_db-1.5.0 test/standalone/config/initializers/quiet_assets.rb
rails_db-1.4.1 test/standalone/config/initializers/quiet_assets.rb
rails_db-1.4.0 test/standalone/config/initializers/quiet_assets.rb
rails_db-1.3.4 test/standalone/config/initializers/quiet_assets.rb
rails_db-1.3.3 test/standalone/config/initializers/quiet_assets.rb
rails_db-1.3.2 test/standalone/config/initializers/quiet_assets.rb
rails_db-1.3.1 test/standalone/config/initializers/quiet_assets.rb
rails_db-1.3 test/standalone/config/initializers/quiet_assets.rb