zammad/test/support/current_attributes_helper.rb
2026-01-02 15:41:09 +02:00

11 lines
273 B
Ruby

# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
module CurrentAttributesHelper
# clear ActiveSupport::CurrentAttributes caches
def self.included(base)
base.teardown do
ActiveSupport::CurrentAttributes.clear_all
end
end
end