summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-11-05 16:01:27 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-11-05 16:01:27 +0000
commita34072aca87147d1659f75add77e23f33c2496ae (patch)
tree44da5a424292f89dbd38a7e6caed8390c96531fe
parent45bcea9805fd1d22c61abc46b0512e4babf5e1f5 (diff)
downloadredmine-a34072aca87147d1659f75add77e23f33c2496ae.tar.gz
redmine-a34072aca87147d1659f75add77e23f33c2496ae.zip
Fixed an issue where Redmine would not start due to an error in Propshaft (#39111).
Patch by user:hidakatsuya. git-svn-id: https://svn.redmine.org/redmine/trunk@23212 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--config/initializers/10-patches.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb
index 0cee95cce..345868410 100644
--- a/config/initializers/10-patches.rb
+++ b/config/initializers/10-patches.rb
@@ -122,13 +122,13 @@ module Propshaft
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