diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-09-09 21:39:39 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-09-10 12:16:56 -0700 |
commit | 68a4b1eac9ae8c8c2ed66cb4b78a40abedc4dbdd (patch) | |
tree | 4217a777b66a71cf41aa5c8d38c3239f8e0c97ea /activerecord/examples | |
parent | 2a820f3d1feeacff59eefdea96f545b0e5af1520 (diff) | |
download | rails-68a4b1eac9ae8c8c2ed66cb4b78a40abedc4dbdd.tar.gz rails-68a4b1eac9ae8c8c2ed66cb4b78a40abedc4dbdd.tar.bz2 rails-68a4b1eac9ae8c8c2ed66cb4b78a40abedc4dbdd.zip |
Ruby 1.9 compat: convert Pathname to string
Diffstat (limited to 'activerecord/examples')
-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 a985cfcb66..b3e862873d 100644 --- a/activerecord/examples/performance.rb +++ b/activerecord/examples/performance.rb @@ -25,7 +25,7 @@ conn[:socket] = Pathname.glob(%w[ /tmp/mysql.sock /var/mysql/mysql.sock /var/run/mysqld/mysqld.sock -]).find { |path| path.socket? } +]).find { |path| path.socket? }.to_s ActiveRecord::Base.establish_connection(conn) |