Preloader/HasOneAssociation/BelongsToAssociation 在几种情况下,读取的缓存可能错误
OuYangJinTing opened this issue · 1 comments
OuYangJinTing commented
BelongsToAssociation
当klass.default_scopes
或者reflection.scope
存在,或者reflection.active_record_primary_key.to_s != klass.primary_key
时,读取的缓存不一定正确HasOneAssociation
当klass.default_scopes
存在时,读取的缓存不一定正确Preloader
当reflection.scope
存在,或者association_key_name.to_s != klass.primary_key
,读取的缓存不一定正确
OuYangJinTing commented
fix by pr #109