class ActiveRecord::MessagePack::Encoder

def encode_record(record)

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