Commit 91a5c9b
authored
Fix warning on ActiveSupport::Cache.format_version
`Rail.application` was always evaluating to `nil` before as the code wasn't
running in an initializer.
Also make sure that `cache_format_version` is only rewritten in test environment
and ONLY if it'd raise a warning otherwise (and shift it back to the previous
value after the cache store is initialized). This should prevent the warning
while also having minimal impact out of the test environment.1 parent 5878078 commit 91a5c9b
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 13 | | |
19 | 14 | | |
20 | 15 | | |
| |||
30 | 25 | | |
31 | 26 | | |
32 | 27 | | |
33 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
0 commit comments