module AuditWeasel::Callbacks

Add a global user variable for the request i.e. the user making the change This can be accessed anywhere in the application

Public Instance Methods

set_user_registry() click to toggle source
# File lib/audit_weasel/callbacks.rb, line 11
def set_user_registry
  AuditWeasel::RequestRegistry.current_user = current_user
end