dm-maker 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dm-maker.rb +1 -1
- data/lib/dm-maker/version.rb +1 -1
- metadata +3 -3
data/lib/dm-maker.rb
CHANGED
@@ -50,7 +50,7 @@ module DataMapper
|
|
50
50
|
create_instance(assoc_class, d, cache)
|
51
51
|
}
|
52
52
|
elsif REL_TYPES[:to_one].include? rel.class
|
53
|
-
if custom_class =
|
53
|
+
if custom_class = value.delete("$class") # TODO: document and test
|
54
54
|
assoc_class = custom_class.constantize
|
55
55
|
else
|
56
56
|
assoc_class = (rel.child_model == klass or klass < rel.child_model) ?
|
data/lib/dm-maker/version.rb
CHANGED
metadata
CHANGED