Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix type of type_key_name field to be String

  • Loading branch information...
commit c8105c602570e2352cd09624b7df0fd9a1b6af42 1 parent a71eda6
@md5 md5 authored
View
2  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?
super
add_touch_callbacks if touch?
end
Please sign in to comment.
Something went wrong with that request. Please try again.