Project

General

Profile

Defect #44240 ยป 0001-Fix-manifest-update.patch

Takashi Kato, 2026-07-10 00:59

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::ParseError
152
        nil
153
      end
154
      current_manifest != new_manifest
148 155
    end
149 156

  
150 157
    def load_path
    (1-1/1)