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