lib/active_record/pgcrypto/log_subscriber.rb
# Scrubs the log event from any sensitive SQL
#
# @return [NilClass]
Scrubs the log event from any sensitive SQL
Scrubs the log event from any sensitive SQL
def sql(event)
        scrubbed_sql = event.payload[:sql].gsub(REGEXP) do |_|
          "#{$LAST_MATCH_INFO[:operation]}(#{PLACEHOLDER})"
        end
        event.payload[:sql] = scrubbed_sql
        super(event)
      end
def sql ( event ) scrubbed_sql = event . payload [ :sql ] . gsub ( REGEXP ) do | _ | "#{$LAST_MATCH_INFO[:operation]}(#{PLACEHOLDER})" end event . payload [ :sql ] = scrubbed_sql super ( event ) end
Scrubs the log event from any sensitive SQL
Scrubs the log event from any sensitive SQL
None
NilClass
event
<not_specific>