summaryrefslogtreecommitdiff
path: root/lib/gt_one_coercion.rb
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2018-04-09 12:19:18 +0100
committerSean McGivern <sean@gitlab.com>2018-04-09 12:47:04 +0100
commit4ef3e3491e2ecc34e7f4de1221d5ad7b8b4a1e24 (patch)
tree6c151944cf2791fe4526633603f3e888268ae431 /lib/gt_one_coercion.rb
parent20fdbbe86a6cffbf467f08d50a0d8ef0f5c87f50 (diff)
downloadgitlab-ce-4ef3e3491e2ecc34e7f4de1221d5ad7b8b4a1e24.tar.gz
Add cop for has_many :through without disabled autoloadingfix-n-plus-one-when-getting-notification-settings-for-recipients
Goldiloader is great, but has several issues with has_many :through relations: * https://github.com/salsify/goldiloader/issues/12 * https://github.com/salsify/goldiloader/issues/14 * https://github.com/salsify/goldiloader/issues/18 Rather than try to figure out which applies in each case, we should just do the drudge work of manually disabling autoloading for all relations of this type. We can always use regular preloading for specific cases, but this way we avoid generating invalid queries through Goldiloader's magic.
Diffstat (limited to 'lib/gt_one_coercion.rb')
0 files changed, 0 insertions, 0 deletions