53 54 55 56 57 58 59
# File 'activerecord/lib/active_record/message_pack.rb', line 53 def encode(input) if input.is_a?(Array) input.map { |record| encode_record(record) } elsif input encode_record(input) end end