instance method
encode_with
Ruby on Rails 4.0.13
Since v3.0.20 Last seen in v4.1.16Signature
encode_with(coder)
No documentation comment.
Parameters
-
coderreq
Source
# 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
Defined in activesupport/lib/active_support/time_with_zone.rb line 163
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone