DEV: Fix random build error

This commit is contained in:
Gerhard Schlager 2019-02-21 14:53:09 +01:00
parent 70aec8d02a
commit f8e498f6ad
1 changed files with 1 additions and 0 deletions

View File

@ -273,6 +273,7 @@ class Theme < ActiveRecord::Base
fields = ThemeField.find_by_theme_ids(theme_ids)
.where(target_id: [Theme.targets[target], Theme.targets[:common]])
.where(name: name.to_s)
.order(:target_id)
end
fields.each(&:ensure_baked!)