From bb75c337543a310ac6bed6f8e3287acf1592dac1 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Mon, 23 Aug 2010 23:09:35 -0300 Subject: Config is deprecated on 1.8.8 and 1.9.3 use RbConfig --- railties/lib/rails/commands/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/rails/commands/runner.rb') diff --git a/railties/lib/rails/commands/runner.rb b/railties/lib/rails/commands/runner.rb index c43a233bc3..54a9e6ec59 100644 --- a/railties/lib/rails/commands/runner.rb +++ b/railties/lib/rails/commands/runner.rb @@ -19,7 +19,7 @@ ARGV.clone.options do |opts| opts.on("-h", "--help", "Show this help message.") { $stderr.puts opts; exit } - if Config::CONFIG['host_os'] !~ /mswin|mingw/ + if RbConfig::CONFIG['host_os'] !~ /mswin|mingw/ opts.separator "" opts.separator "You can also use runner as a shebang line for your scripts like this:" opts.separator "-------------------------------------------------------------" -- cgit v1.2.3