Permalink
Browse files

Check property instance type instead of primitive

  • Loading branch information...
1 parent bb30276 commit 254102bff1f77662149b4ac1e18a96a8b64dd4d8 @solnic solnic committed Sep 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dm-core/associations/many_to_one.rb
@@ -266,7 +266,7 @@ def source_key_options(target_property)
:unique => @unique
)
- if target_property.primitive == Integer
+ if target_property.instance_of?(Property::Integer)
min = target_property.min
max = target_property.max

0 comments on commit 254102b

Please sign in to comment.