current_attributes_helper.rb 273 B

1234567891011
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. module CurrentAttributesHelper
  3. # clear ActiveSupport::CurrentAttributes caches
  4. def self.included(base)
  5. base.teardown do
  6. ActiveSupport::CurrentAttributes.clear_all
  7. end
  8. end
  9. end