lib/active_remote/serialization.rb in active_remote-1.7.0 vs lib/active_remote/serialization.rb in active_remote-1.7.1

- old
+ new

@@ -29,12 +29,13 @@ # Remote objects. # def serialize_records return nil unless last_response.respond_to?(:records) - last_response.records.map do |record| - remote = self.class.new(record.to_hash) - remote + last_response.records.map do |remote_record| + record = self.class.allocate + record.instantiate(remote_record.to_hash) + record end end end end