trabajo-afectivo/test/support/current_attributes_helper.rb

12 lines
272 B
Ruby
Raw Normal View History

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