A platform for community discussion. Free, open, simple.
PERF: no need to select the full theme just to get color scheme
Sam Saffron3cfedc6c71ef
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rbindex 81d28e90f3f..22c24fafb32 100644--- a/app/helpers/application_helper.rb+++ b/app/helpers/application_helper.rb@@ -390,8 +390,10 @@ module ApplicationHelperdef scheme_idreturn if theme_ids.blank?- theme = Theme.find_by(id: theme_ids.first)- theme&.color_scheme_id+ Theme+ .where(id: theme_ids.first)+ .pluck(:color_scheme_id)+ .firstenddef current_homepage