identity_cache icon indicating copy to clipboard operation
identity_cache copied to clipboard

Prevent cache_belongs_to from being used with a has_one association

Open dylanahsmith opened this issue 8 years ago • 0 comments

I noticed in https://github.com/Shopify/identity_cache/pull/360#discussion_r153844042 that this can happen without an exception. There are assumptions in cache_belongs_to that I think would lead to inefficient queries and cache corruption.

dylanahsmith avatar Nov 29 '17 16:11 dylanahsmith