Skip to content

Commit

Permalink
Added TODO to make sure the Adapter responsibility is clear wrt typec…
Browse files Browse the repository at this point in the history
…asting
  • Loading branch information
dkubb committed Jun 7, 2009
1 parent 11c454c commit 109e6d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/dm-core/model.rb
Expand Up @@ -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
Expand Down

0 comments on commit 109e6d4

Please sign in to comment.