summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-04-30 12:44:19 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-04-30 12:44:19 +0000
commitf65c47e3a7e6f2d19494236f8cb2cbc20f6dbd93 (patch)
tree3650efb2e18791283c268986c9431b1a252e20d6
parentda7c89bfd0031ea0515168b8549b34c02d1e1570 (diff)
downloadredmine-f65c47e3a7e6f2d19494236f8cb2cbc20f6dbd93.tar.gz
redmine-f65c47e3a7e6f2d19494236f8cb2cbc20f6dbd93.zip
Fixes theme discovery under JRuby on Rails war structure (#632, #5404).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3710 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--lib/redmine/themes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/themes.rb b/lib/redmine/themes.rb
index d0c90e3a9..57cdecb10 100644
--- a/lib/redmine/themes.rb
+++ b/lib/redmine/themes.rb
@@ -54,7 +54,7 @@ module Redmine
private
def self.scan_themes
- dirs = Dir.glob("#{RAILS_ROOT}/public/themes/*").select do |f|
+ dirs = Dir.glob("#{Rails.public_path}/themes/*").select do |f|
# A theme should at least override application.css
File.directory?(f) && File.exist?("#{f}/stylesheets/application.css")
end