lib/rack/dev-mark.rb in rack-dev-mark-0.7.9 vs lib/rack/dev-mark.rb in rack-dev-mark-0.7.10
- old
+ new
@@ -31,14 +31,14 @@
def timestamp=(timestamp)
@timestamp = timestamp.is_a?(Time) ? timestamp : Time.parse(timestamp)
end
def tmp_disabled
- @tmp_disabled ||= false
+ Thread.current[:"rack-dev-mark__tmp_disabled"] ||= false
end
def tmp_disabled=(v)
- @tmp_disabled = !!v
+ Thread.current[:"rack-dev-mark__tmp_disabled"] = !!v
end
def rack_dev_mark_env
s = ENV['RACK_DEV_MARK_ENV']
s.to_s == '' ? nil : s