Browse files

Fix type of type_key_name field to be String

  • Loading branch information...
1 parent a71eda6 commit c8105c602570e2352cd09624b7df0fd9a1b6af42 @md5 md5 committed May 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mongo_mapper/plugins/associations/belongs_to_association.rb
@@ -17,7 +17,7 @@ def proxy_class
def setup(model)
model.key foreign_key, ObjectId unless model.key?(foreign_key)
- model.key type_key_name, ObjectId unless model.key?(type_key_name) if polymorphic?
+ model.key type_key_name, String unless model.key?(type_key_name) if polymorphic?
add_touch_callbacks if touch?

0 comments on commit c8105c6

Please sign in to comment.