2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-08-25 12:24:42 +00:00
|
|
|
|
|
|
|
module CurrentAttributesHelper
|
|
|
|
# clear ActiveSupport::CurrentAttributes caches
|
|
|
|
|
|
|
|
def self.included(base)
|
|
|
|
base.teardown do
|
|
|
|
ActiveSupport::CurrentAttributes.clear_all
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|