diff --git a/lib/audited.rb b/lib/audited.rb index 6360f2f7..e30079b9 100644 --- a/lib/audited.rb +++ b/lib/audited.rb @@ -39,6 +39,10 @@ def context RequestStore.audit_context ||= {} end + def context=(value) + RequestStore.audit_context = value + end + def config yield(self) end