Sha256: f9effd92b2a860c770ad3ff840e30eec7265bcc1d593b80f7623b5ea819249e8
Contents?: true
Size: 407 Bytes
Versions: 3
Compression:
Stored size: 407 Bytes
Contents
module EffectiveLogging module SetCurrentUser module ActionController # Add me to your ApplicationController # around_action :set_effective_logging_current_user def set_effective_logging_current_user EffectiveLogging.current_user = current_user if block_given? yield EffectiveLogging.current_user = nil end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems