move safe_mode from Thread.current to RequestStore

This commit is contained in:
Albert Yi
2019-06-26 09:26:20 -07:00
parent e51d77b065
commit f95bcc7330
2 changed files with 6 additions and 6 deletions
+1 -1
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