Skip to content

Commit

Permalink
Add method for overriding context
Browse files Browse the repository at this point in the history
  • Loading branch information
amkisko committed Dec 13, 2024
1 parent e7a6e8e commit 3debb4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/audited.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ def context
RequestStore.audit_context ||= {}
end

def context=(value)
RequestStore.audit_context = value
end

def config
yield(self)
end
Expand Down

0 comments on commit 3debb4c

Please sign in to comment.