method
encode_with
v4.0.2 -
Show latest stable
- Class:
ActiveSupport::TimeWithZone
encode_with(coder)public
No documentation available.
# File activesupport/lib/active_support/time_with_zone.rb, line 163
def encode_with(coder)
if coder.respond_to?(:represent_object)
coder.represent_object(nil, utc)
else
coder.represent_scalar(nil, utc.strftime("%Y-%m-%d %H:%M:%S.%9NZ"))
end
end