From 109e6d4d7db2a19818aeafab6f5074793f2cc7df Mon Sep 17 00:00:00 2001 From: Dan Kubb Date: Sun, 7 Jun 2009 01:30:58 -0700 Subject: [PATCH] Added TODO to make sure the Adapter responsibility is clear wrt typecasting --- lib/dm-core/model.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/dm-core/model.rb b/lib/dm-core/model.rb index e0e03f86a..1d24712ca 100644 --- a/lib/dm-core/model.rb +++ b/lib/dm-core/model.rb @@ -404,6 +404,8 @@ def load(records, query) value = record[property] + # TODO: typecasting should happen inside the Adapter + # and all values should come back as expected objects if property.custom? value = property.type.load(value, property) end