diff --git a/lib/sentient_user.rb b/lib/sentient_user.rb index 98a4425..153e103 100644 --- a/lib/sentient_user.rb +++ b/lib/sentient_user.rb @@ -42,6 +42,10 @@ def self.included(base) before_action do |c| User.current = c.send(:current_user) end + + after_action do |c| + User.current = nil + end } end -end \ No newline at end of file +end