David Taylor 657dff3544
PERF: Remove N+1s from ThemeController#update and #show (#12842)
These endpoints only return one `Theme` row, but the one-many relations were not being preloaded efficiently. This commit moves the `includes` statement to a scope, and makes use of it in `#index`, `#show`, and `#update`.
2021-04-27 12:30:29 +01:00
..
2020-04-28 15:59:39 +05:30
2019-11-29 15:49:08 +00:00
2020-08-21 11:36:53 +08:00
2020-10-27 23:42:33 +05:30
2019-10-21 12:08:20 +01:00
2020-05-05 13:46:57 +10:00
2020-09-01 13:41:04 +05:30
2021-04-14 10:27:07 +03:00
2020-10-27 23:42:33 +05:30
2020-10-27 23:42:33 +05:30
2020-04-28 15:59:39 +05:30
2020-10-27 23:42:33 +05:30
2019-10-17 16:58:22 +11:00
2020-10-27 23:42:33 +05:30