mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Actually check the value of the ivar
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user