Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Check property instance type instead of primitive

  • Loading branch information...
commit 254102bff1f77662149b4ac1e18a96a8b64dd4d8 1 parent bb30276
@solnic solnic authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/dm-core/associations/many_to_one.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.