diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2024-10-31 08:15:57 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2024-10-31 08:15:57 +0000 |
commit | 88519264cf9987c60b07acf4c5f1b5e5f3eb38f6 (patch) | |
tree | 79a5cf84e463051187aec286409f3e36bd1403bf /config | |
parent | 73ec47270227f38532a53736b60ee6e4a43785ef (diff) | |
download | redmine-88519264cf9987c60b07acf4c5f1b5e5f3eb38f6.tar.gz redmine-88519264cf9987c60b07acf4c5f1b5e5f3eb38f6.zip |
Adds asset path to default to support old style theme (#39111).
Patch by Takashi Kato (user:tohosaku).
git-svn-id: https://svn.redmine.org/redmine/trunk@23173 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/30-redmine.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/initializers/30-redmine.rb b/config/initializers/30-redmine.rb index 4eceaf06d..cf13cab20 100644 --- a/config/initializers/30-redmine.rb +++ b/config/initializers/30-redmine.rb @@ -24,7 +24,10 @@ Redmine::PluginLoader.load Rails.application.config.to_prepare do default_paths = [] - Rails.application.config.assets.redmine_default_asset_path = Redmine::AssetPath.new(Rails.public_path, default_paths) + default_paths << Rails.root.join("app/assets/javascripts") + default_paths << Rails.root.join("app/assets/images") + default_paths << Rails.root.join("app/assets/stylesheets") + Rails.application.config.assets.redmine_default_asset_path = Redmine::AssetPath.new(Rails.root.join('app/assets'), default_paths) Redmine::FieldFormat::RecordList.subclasses.each do |klass| klass.instance.reset_target_class |