Module: EffectiveLogging::SetCurrentUser::ActionController

Defined in:
lib/effective_logging/set_current_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



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

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



16
17
18
# File 'lib/effective_logging/set_current_user.rb', line 16

def set_log_changes_user
  # No longer need to call this
end