diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-08-23 23:09:35 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-08-23 23:10:36 -0300 |
commit | bb75c337543a310ac6bed6f8e3287acf1592dac1 (patch) | |
tree | 5c2bd4eaecc7b7160302c891efe7d73a0302915b /railties/lib/rails/generators/actions.rb | |
parent | 6f4d100761f3dd453e9049837c61d6cf025fc03c (diff) | |
download | rails-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/generators/actions.rb')
-rw-r--r-- | railties/lib/rails/generators/actions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/actions.rb b/railties/lib/rails/generators/actions.rb index 668ef48892..da64560d83 100644 --- a/railties/lib/rails/generators/actions.rb +++ b/railties/lib/rails/generators/actions.rb @@ -242,7 +242,7 @@ module Rails def rake(command, options={}) log :rake, command env = options[:env] || 'development' - sudo = options[:sudo] && Config::CONFIG['host_os'] !~ /mswin|mingw/ ? 'sudo ' : '' + sudo = options[:sudo] && RbConfig::CONFIG['host_os'] !~ /mswin|mingw/ ? 'sudo ' : '' in_root { run("#{sudo}#{extify(:rake)} #{command} RAILS_ENV=#{env}", :verbose => false) } end @@ -309,7 +309,7 @@ module Rails # Add an extension to the given name based on the platform. # def extify(name) - if Config::CONFIG['host_os'] =~ /mswin|mingw/ + if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ "#{name}.bat" else name |