Actually check the value of the ivar
This commit is contained in:
parent
4384a95b51
commit
4b9f167231
@ -9,11 +9,9 @@ def _load(marshaled_time)
|
|||||||
time = _original_load(marshaled_time)
|
time = _original_load(marshaled_time)
|
||||||
time.instance_eval do
|
time.instance_eval do
|
||||||
if defined?(@marshal_with_utc_coercion)
|
if defined?(@marshal_with_utc_coercion)
|
||||||
remove_instance_variable("@marshal_with_utc_coercion")
|
val = remove_instance_variable("@marshal_with_utc_coercion")
|
||||||
utc
|
|
||||||
else
|
|
||||||
self
|
|
||||||
end
|
end
|
||||||
|
val ? utc : self
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user