aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/examples
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2010-09-09 21:39:39 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2010-09-10 12:16:56 -0700
commit68a4b1eac9ae8c8c2ed66cb4b78a40abedc4dbdd (patch)
tree4217a777b66a71cf41aa5c8d38c3239f8e0c97ea /activerecord/examples
parent2a820f3d1feeacff59eefdea96f545b0e5af1520 (diff)
downloadrails-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.rb2
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)