mirror of
https://github.com/discourse/discourse.git
synced 2025-03-27 07:35:36 +08:00

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`.