Module: AuditWeasel::Callbacks
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/audit_weasel/callbacks.rb
Overview
Add a global user variable for the request i.e. the user making the change This can be accessed anywhere in the application
Instance Method Summary collapse
Instance Method Details
#set_user_registry ⇒ Object
11 12 13 |
# File 'lib/audit_weasel/callbacks.rb', line 11 def set_user_registry AuditWeasel::RequestRegistry.current_user = current_user end |