Feature #39111 » Fixed-an-issue-where-Redmine-would-not-start-due-to-an-error-in-Propshaft.patch
| config/initializers/10-patches.rb | ||
|---|---|---|
|
Assembly.prepend(Module.new do
|
||
|
def initialize(config)
|
||
|
super
|
||
|
if Rails.application.config.assets.redmine_detect_update && (!manifest_path.exist? || manifest_outdated?)
|
||
|
if Rails.application.config.assets.redmine_detect_update && (!config.manifest_path.exist? || manifest_outdated?)
|
||
|
processor.process
|
||
|
end
|
||
|
end
|
||
|
def manifest_outdated?
|
||
|
!!load_path.asset_files.detect{|f| f.mtime > manifest_path.mtime}
|
||
|
!!load_path.asset_files.detect{|f| f.mtime > config.manifest_path.mtime}
|
||
|
end
|
||
|
def load_path
|
||