summaryrefslogtreecommitdiffstats
path: root/script/dbconsole
diff options
context:
space:
mode:
authorJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2010-11-02 00:20:21 +0000
committerJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2010-11-02 00:20:21 +0000
commit27049b848dd48eca4df160e6024d66215230d260 (patch)
tree5fdc0eaedd653da2a4148cbad7814afefad7489c /script/dbconsole
parentbed79f523bd64d900a4e615efe7eb3e0cfc0abd8 (diff)
downloadredmine-27049b848dd48eca4df160e6024d66215230d260.tar.gz
redmine-27049b848dd48eca4df160e6024d66215230d260.zip
Use File#expand_path for require's in script/* for Ruby 1.9.2 compatibility. #4050
Since Ruby 1.9.2, LOAD_PATH does not include "." directory anymore, so we should use absolute paths instead to ensure both 1.8.x and 1.9.x compatibility. It has been included in railties 2.3.x branch since july 2009, see http://github.com/rails/rails/commit/7a427a83ca4da92c70760007aaf313638a5d8374 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4359 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'script/dbconsole')
-rw-r--r--script/dbconsole2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/dbconsole b/script/dbconsole
index caa60ce82..83c8436a9 100644
--- a/script/dbconsole
+++ b/script/dbconsole
@@ -1,3 +1,3 @@
#!/usr/bin/env ruby
-require File.dirname(__FILE__) + '/../config/boot'
+require File.expand_path('../../config/boot', __FILE__)
require 'commands/dbconsole'