提交 4b9f1672 编写于 作者: W wycats

Actually check the value of the ivar

上级 4384a95b
......@@ -9,11 +9,9 @@ def _load(marshaled_time)
time = _original_load(marshaled_time)
time.instance_eval do
if defined?(@marshal_with_utc_coercion)
remove_instance_variable("@marshal_with_utc_coercion")
utc
else
self
val = remove_instance_variable("@marshal_with_utc_coercion")
end
val ? utc : self
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册