aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/dbconsole.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-08-23 23:09:35 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2010-08-23 23:10:36 -0300
commitbb75c337543a310ac6bed6f8e3287acf1592dac1 (patch)
tree5c2bd4eaecc7b7160302c891efe7d73a0302915b /railties/lib/rails/commands/dbconsole.rb
parent6f4d100761f3dd453e9049837c61d6cf025fc03c (diff)
downloadrails-bb75c337543a310ac6bed6f8e3287acf1592dac1.tar.gz
rails-bb75c337543a310ac6bed6f8e3287acf1592dac1.tar.bz2
rails-bb75c337543a310ac6bed6f8e3287acf1592dac1.zip
Config is deprecated on 1.8.8 and 1.9.3 use RbConfig
Diffstat (limited to 'railties/lib/rails/commands/dbconsole.rb')
-rw-r--r--railties/lib/rails/commands/dbconsole.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/dbconsole.rb b/railties/lib/rails/commands/dbconsole.rb
index 5bbaf725df..14d245ab2e 100644
--- a/railties/lib/rails/commands/dbconsole.rb
+++ b/railties/lib/rails/commands/dbconsole.rb
@@ -42,7 +42,7 @@ module Rails
def find_cmd(*commands)
dirs_on_path = ENV['PATH'].to_s.split(File::PATH_SEPARATOR)
- commands += commands.map{|cmd| "#{cmd}.exe"} if Config::CONFIG['host_os'] =~ /mswin|mingw/
+ commands += commands.map{|cmd| "#{cmd}.exe"} if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
full_path_command = nil
found = commands.detect do |cmd|