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