FIX: Live refresh parent themes when editing child themes

FIX: Live refresh parent themes when editing child themes

diff --git a/app/models/theme.rb b/app/models/theme.rb
index 1334660..46bd55f 100644
--- a/app/models/theme.rb
+++ b/app/models/theme.rb
@@ -242,7 +242,8 @@ class Theme < ActiveRecord::Base
     if all_themes
       message = theme_ids.map { |id| refresh_message_for_targets(targets, id) }.flatten
     else
-      message = refresh_message_for_targets(targets, theme_ids).flatten
+      parent_ids = Theme.where(id: theme_ids).joins(:parent_themes).pluck(:parent_theme_id).uniq
+      message = refresh_message_for_targets(targets, theme_ids | parent_ids).flatten
     end
 
     MessageBus.publish('/file-change', message)

GitHub sha: 260398d7

This commit has been mentioned on Discourse Meta. There might be relevant details there: