A platform for community discussion. Free, open, simple.
DEV: remove uneeded distinct from relation
jwjwyoung5cef71e88500
diff --git a/app/models/theme.rb b/app/models/theme.rbindex f0476e67a99..6a3b7a5643e 100644--- a/app/models/theme.rb+++ b/app/models/theme.rb@@ -119,7 +119,7 @@ class Theme < ActiveRecord::Basedef self.components_for(theme_id)get_set_cache "theme_components_for_#{theme_id}" do- ChildTheme.where(parent_theme_id: theme_id).distinct.pluck(:child_theme_id)+ ChildTheme.where(parent_theme_id: theme_id).pluck(:child_theme_id)endend