instance method encode_with

Ruby on Rails 3.2.22.5

Since v3.0.20 Last seen in v4.1.16

Available in: v3.0.20 v3.1.12 v3.2.22.5 v4.0.13 v4.1.16

Signature

encode_with(coder)

No documentation comment.

Parameters

coder req
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 141
    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 141 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::TimeWithZone

Type at least 2 characters to search.

↑↓ navigate · open · esc close