method

encode_record

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Encoder
encode_record(record) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide 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
Register or log in to add new notes.