提交 2c62baf4 编写于 作者: M Michael Koziarski

Handle the case where there is no ivar set.

This happens on jruby due to a bug, but also on historically marshalled data.
上级 7ba28726
......@@ -15,7 +15,7 @@ class << self
alias_method :_original_load, :_load
def _load(marshaled_time)
time = _original_load(marshaled_time)
utc = time.send(:remove_instance_variable, '@marshal_with_utc_coercion')
utc = time.instance_variable_get('@marshal_with_utc_coercion')
utc ? time.utc : time
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册