PERF: Reduce N+1s on theme admin page

This commit is contained in:
David Taylor
2019-02-26 14:22:02 +00:00
parent d04c4bf8e7
commit a8ffc02d06
5 changed files with 25 additions and 19 deletions

View File

@ -107,6 +107,7 @@ class Admin::ThemesController < Admin::AdminController
:remote_theme,
:theme_settings,
:settings_field,
# :locale_fields, # Fails due to https://github.com/rails/rails/issues/34456
:user,
:color_scheme,
theme_fields: :upload