Sha256: c286c1901157701b9288a98ab8f149d47d0ef455ec36f2b4d2bb199c2be9d135
Contents?: true
Size: 469 Bytes
Versions: 1
Compression:
Stored size: 469 Bytes
Contents
module Metova module Logger module ControllerPatch def append_info_to_payload(payload) super payload[:ip] = request.remote_ip if defined?(current_user) && current_user payload[:user] = [ (current_user.try(:email) || 'NO_EMAIL'), (current_user.try(:id) || 'NO_ID') ].join('/') end end end end end ActionController::Base.send :include, Metova::Logger::ControllerPatch
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metova-logger-0.0.7 | lib/metova/logger/controller_patch.rb |