identity_cache
identity_cache copied to clipboard
Prevent cache_belongs_to from being used with a has_one association
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.