instance method encode_record

Ruby on Rails 7.1.6

Since v7.1.6

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

encode_record(record)

No documentation comment.

Parameters

record req
Source
# File activerecord/lib/active_record/message_pack.rb, line 61
      def encode_record(record)
        ref = @refs[record]

        if !ref
          ref = @refs[record] = @entries.size
          @entries << build_entry(record)
          add_cached_associations(record, @entries.last)
        end

        ref
      end

Defined in activerecord/lib/active_record/message_pack.rb line 61 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::MessagePack::Encoder

Type at least 2 characters to search.

↑↓ navigate · open · esc close