Sha256: 7506632c204e5ff22a055e44762f2ee7960c95173785f09cbdd3d18ab312c606
Contents?: true
Size: 515 Bytes
Versions: 1
Compression:
Stored size: 515 Bytes
Contents
module EffectiveLogging module SetCurrentUser # Add me to your ApplicationController # before_action :set_effective_logging_current_user def set_effective_logging_current_user if respond_to?(:current_user) EffectiveLogging.current_user = current_user else raise "(effective_logging) set_effective_logging_current_user expects a current_user() method to be available" end end def set_log_changes_user # No longer need to call this end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
effective_logging-1.8.0 | lib/effective_logging/set_current_user.rb |