From 5dd199df261bc5c5cdcfac2a84a2d60e1d85f27d Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 3 Sep 2013 18:58:56 +1000 Subject: [PATCH] bench fix and new arel patches for rails 4 --- lib/freedom_patches/arel_patch.rb | 8 ++++++++ script/bench.rb | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 lib/freedom_patches/arel_patch.rb diff --git a/lib/freedom_patches/arel_patch.rb b/lib/freedom_patches/arel_patch.rb new file mode 100644 index 00000000000..3d03f649410 --- /dev/null +++ b/lib/freedom_patches/arel_patch.rb @@ -0,0 +1,8 @@ +if rails4? + # https://github.com/rails/arel/pull/206 + class Arel::Table + def hash + @name.hash + end + end +end diff --git a/script/bench.rb b/script/bench.rb index 59df8c5fca0..71797eba445 100644 --- a/script/bench.rb +++ b/script/bench.rb @@ -117,6 +117,8 @@ begin puts "Starting benchmark..." + # asset precompilation is a dog, wget to force it + run "wget http://127.0.0.1:#{@port}/ -o tmp/test.html" home_page = bench("/") topic_page = bench("/t/oh-how-i-wish-i-could-shut-up-like-a-tunnel-for-so/69")