Project

General

Profile

Defect #44240 » 0001-Apply-0001-Fix-manifest-update.patch-from-https-www..patch

Marius BĂLTEANU, 2026-10-12 23:58

View differences:

config/initializers/10-patches.rb
144 144
    end
145 145

  
146 146
    def manifest_outdated?
147
      !!load_path.asset_files.detect{|f| f.mtime > config.manifest_path.mtime}
147
      new_manifest = JSON.parse(load_path.manifest.to_json)
148
      current_manifest =
149
        begin
150
          JSON.parse(config.manifest_path.read)
151
        rescue JSON::ParserError
152
          nil
153
        end
154
      current_manifest != new_manifest
148 155
    end
149 156

  
150 157
    def load_path
(3-3/3)