diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-04-04 12:23:27 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-04-04 13:18:59 +0900 |
commit | 10919bfef2303c3409b15ed1d9405f3b4c518507 (patch) | |
tree | c3e270f76a71b6a58e751fdf8a14981bbe6d4dbc /actionmailbox/test | |
parent | d49761cd66f55e18e0a7ee5138de0649c18654f0 (diff) | |
download | rails-10919bfef2303c3409b15ed1d9405f3b4c518507.tar.gz rails-10919bfef2303c3409b15ed1d9405f3b4c518507.tar.bz2 rails-10919bfef2303c3409b15ed1d9405f3b4c518507.zip |
Refactor `Relation#cache_key` is moved from `CollectionCacheKey#collection_cache_key`
The implementation of `Relation#cache_key` depends on some internal
relation methods (e.g. `apply_join_dependency`, `build_subquery`), but
somehow that implementation exists on the model class
(`collection_cache_key`), it sometimes bothers to me.
This refactors that implementation moves to `Relation#cache_key`, then
we can avoid `send` to call internal methods.
Diffstat (limited to 'actionmailbox/test')
0 files changed, 0 insertions, 0 deletions