Skip to content

Commit

Permalink
Handle the case where there is no ivar set.
Browse files Browse the repository at this point in the history
This happens on jruby due to a bug, but also on historically marshalled data.
  • Loading branch information
NZKoz committed Sep 4, 2008
1 parent 7ba2872 commit 2c62baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/core_ext/time.rb
Expand Up @@ -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
Expand Down

0 comments on commit 2c62baf

Please sign in to comment.