Module: EffectiveLogging::LogChangesUser

Defined in:
lib/effective_logging/log_changes_user.rb

Instance Method Summary collapse

Instance Method Details

#set_effective_logging_current_userObject

Add me to your ApplicationController before_action :set_effective_logging_current_user



7
8
9
10
11
12
13
# File 'lib/effective_logging/log_changes_user.rb', line 7

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

#set_log_changes_userObject



15
16
17
# File 'lib/effective_logging/log_changes_user.rb', line 15

def set_log_changes_user
  # No longer need to call this
end