Sha256: 0a8b21ea947941a763d295b15aca8459c1981406b47f580bc3a1bc90e4340ac5
Contents?: true
Size: 299 Bytes
Versions: 2
Compression:
Stored size: 299 Bytes
Contents
module ActiveRecord class LogSubscriber alias_method :debug_without_standby, :debug def debug(msg) db = Standby.disabled ? "" : color("[#{Thread.current[:_standby] || "primary"}]", ActiveSupport::LogSubscriber::GREEN, true) debug_without_standby(db + msg) end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
slavery-4.0.0 | lib/standby/active_record/log_subscriber.rb |
standby-4.0.0 | lib/standby/active_record/log_subscriber.rb |