evrone/quiet_assets — pull request #12 by jordanglassman (2012-11-07 22:28:31+00:00)
Title: Allow for arbitrary filtering of assets using lambdas and the env variable

This change leaves the quiet_assets code intact while allowing the user to add an additional configuration parameter that contains additional filters.

To use, add this to `application.rb` or an environment file:

config.quiet_assets_checks = [ ->(env){ env['PATH_INFO'].start_with?('/health') }, ->(env){ env['PATH_INFO'].start_with?('/admins') } ]

Filters can be any predicate that uses the `env` variable.