mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:23:25 +08:00
DEV: Ensure theme tests are always loaded in a consistent order (#16569)
If they aren't, then the digest will be different, causing unexpected issues
This commit is contained in:
parent
144b87b17a
commit
5e34ce1282
|
@ -707,6 +707,7 @@ class Theme < ActiveRecord::Base
|
|||
def baked_js_tests_with_digest
|
||||
content = theme_fields
|
||||
.where(target_id: Theme.targets[:tests_js])
|
||||
.order(name: :asc)
|
||||
.each(&:ensure_baked!)
|
||||
.map(&:value_baked)
|
||||
.join("\n")
|
||||
|
|
Loading…
Reference in New Issue
Block a user