remnant 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/remnant/rack.rb +2 -2
- data/lib/remnant/version.rb +1 -1
- metadata +1 -1
data/lib/remnant/rack.rb
CHANGED
@@ -13,7 +13,7 @@ class Remnant
|
|
13
13
|
|
14
14
|
begin
|
15
15
|
# only gc capture as dev
|
16
|
-
if env['rack.request.cookie_hash']['developer']
|
16
|
+
if env['rack.request.cookie_hash']['developer'] == '1'
|
17
17
|
::Remnant::GC.enable_stats
|
18
18
|
end
|
19
19
|
|
@@ -26,7 +26,7 @@ class Remnant
|
|
26
26
|
::Remnant.collect
|
27
27
|
|
28
28
|
# only gc capture as dev
|
29
|
-
if env['rack.request.cookie_hash']['developer']
|
29
|
+
if env['rack.request.cookie_hash']['developer'] == '1'
|
30
30
|
::Remnant::GC.clear_stats
|
31
31
|
end
|
32
32
|
|
data/lib/remnant/version.rb
CHANGED