method
encode_record
v8.0.0 -
Show latest stable
- Class:
ActiveRecord::MessagePack::Encoder
encode_record(record)public
No documentation available.
# 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