diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2010-07-15 23:49:17 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2010-07-16 08:28:49 +0100 |
commit | 130bf3c9edf89de78203c02c5f76f9ea2b7b46a5 (patch) | |
tree | a2eb20b6fb1acd67d71520c7e75fd7a90385aa2a | |
parent | 1fcf4e8ecbe4db2443a88d1e06c06667cff5b762 (diff) | |
download | rails-130bf3c9edf89de78203c02c5f76f9ea2b7b46a5.tar.gz rails-130bf3c9edf89de78203c02c5f76f9ea2b7b46a5.tar.bz2 rails-130bf3c9edf89de78203c02c5f76f9ea2b7b46a5.zip |
Fix data loading from the performance script
-rw-r--r-- | activerecord/examples/performance.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/examples/performance.rb b/activerecord/examples/performance.rb index f7d358337c..a985cfcb66 100644 --- a/activerecord/examples/performance.rb +++ b/activerecord/examples/performance.rb @@ -58,7 +58,7 @@ end sqlfile = File.expand_path("../performance.sql", __FILE__) if File.exists?(sqlfile) - mysql_bin = %w[mysql mysql5].select { |bin| `which #{bin}`.length > 0 } + mysql_bin = %w[mysql mysql5].detect { |bin| `which #{bin}`.length > 0 } `#{mysql_bin} -u #{conn[:username]} #{"-p#{conn[:password]}" unless conn[:password].blank?} #{conn[:database]} < #{sqlfile}` else puts 'Generating data...' |