Actually check the value of the ivar

This commit is contained in:
wycats
2010-03-27 12:16:50 -07:00
parent 4384a95b51
commit 4b9f167231

View File

@@ -9,11 +9,9 @@ if RUBY_VERSION < '1.9'
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