class method
self._load
Ruby on Rails 4.0.13
Since v2.2.3 Last seen in v4.2.9Signature
self._load(marshaled_time)
No documentation comment.
Parameters
-
marshaled_timereq
Source
# File activesupport/lib/active_support/core_ext/time/marshal.rb, line 8
def _load(marshaled_time)
time = _load_without_zone(marshaled_time)
time.instance_eval do
if zone = defined?(@_zone) && remove_instance_variable('@_zone')
ary = to_a
ary[0] += subsec if ary[0] == sec
ary[-1] = zone
utc? ? Time.utc(*ary) : Time.local(*ary)
else
self
end
end
end
Defined in activesupport/lib/active_support/core_ext/time/marshal.rb line 8
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Time