Sha256: 0d0011c1d05514d84a21b2af8f81ef183df1272571508a1ea8b59870bb45956e
Contents?: true
Size: 551 Bytes
Versions: 2
Compression:
Stored size: 551 Bytes
Contents
module ActionController class Base def self.suppress_logging_for *actions unless respond_to? :actions_without_logging cattr_accessor :actions_without_logging self.actions_without_logging = [] define_method :process do |request, *args| if self.class.actions_without_logging.include?((request['action'] || 'index').to_sym) logger.silence { super } else super end end end self.actions_without_logging.concat actions.flatten end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
programmable-ventouse-0.1.5 | lib/ventouse/suppress_logging_for.rb |
ventouse-0.1.6 | lib/ventouse/suppress_logging_for.rb |