Mercurial > hg > soundsoftware-site
comparison lib/redmine/utils.rb @ 909:cbb26bc654de redmine-1.3
Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 19:09:32 +0000 |
parents | 513646585e45 |
children | 433d4f72a19b |
comparison
equal
deleted
inserted
replaced
908:c6c2cbd0afee | 909:cbb26bc654de |
---|---|
1 # Redmine - project management software | 1 # Redmine - project management software |
2 # Copyright (C) 2006-2009 Jean-Philippe Lang | 2 # Copyright (C) 2006-2011 Jean-Philippe Lang |
3 # | 3 # |
4 # This program is free software; you can redistribute it and/or | 4 # This program is free software; you can redistribute it and/or |
5 # modify it under the terms of the GNU General Public License | 5 # modify it under the terms of the GNU General Public License |
6 # as published by the Free Software Foundation; either version 2 | 6 # as published by the Free Software Foundation; either version 2 |
7 # of the License, or (at your option) any later version. | 7 # of the License, or (at your option) any later version. |
22 def relative_url_root | 22 def relative_url_root |
23 ActionController::Base.respond_to?('relative_url_root') ? | 23 ActionController::Base.respond_to?('relative_url_root') ? |
24 ActionController::Base.relative_url_root.to_s : | 24 ActionController::Base.relative_url_root.to_s : |
25 ActionController::AbstractRequest.relative_url_root.to_s | 25 ActionController::AbstractRequest.relative_url_root.to_s |
26 end | 26 end |
27 | 27 |
28 # Sets the relative root url of the application | 28 # Sets the relative root url of the application |
29 def relative_url_root=(arg) | 29 def relative_url_root=(arg) |
30 if ActionController::Base.respond_to?('relative_url_root=') | 30 if ActionController::Base.respond_to?('relative_url_root=') |
31 ActionController::Base.relative_url_root=arg | 31 ActionController::Base.relative_url_root=arg |
32 else | 32 else |