Sha256: 9db2bc3d388ce6936b8df0295a7fd36e6afdb813c0106cfd716cb6204ed139d7
Contents?: true
Size: 481 Bytes
Versions: 1
Compression:
Stored size: 481 Bytes
Contents
module SuppressLoggingFor def self.suppress_logging_for *actions unless defined? @@actions_without_logging @@actions_without_logging = [] def process(request, *) if @@actions_without_logging.include?((request['action'] || 'index').to_sym) logger.silence { super } else super end end end @@actions_without_logging.concat actions.flatten end end ActionController::Base.send :include, SuppressLoggingFor
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
programmable-ventouse-0.1.4 | lib/ventouse/suppress_logging_for.rb |