move safe_mode from Thread.current to RequestStore

This commit is contained in:
Albert Yi
2019-05-17 13:47:54 -07:00
parent e51d77b065
commit f95bcc7330
2 changed files with 6 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ class CurrentUserTest < ActiveSupport::TestCase
end
teardown do
Thread.current[:safe_mode] = false
RequestStore[:safe_mode] = false
end
context ".safe_mode?" do