Please sign in to comment.
Declare type key on polymorphic belongs_to
When a belongs_to association is marked as :polymorphic => true, a model key of type String for the "type_key_name" field in addition to the key of type ObjectId for "foreign_key"
- Loading branch information...
Showing with 4 additions and 1 deletion.