Skip to content

Commit 5dd199d

Browse files
committed
bench fix and new arel patches for rails 4
1 parent ba6576e commit 5dd199d

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

lib/freedom_patches/arel_patch.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
if rails4?
2+
# https://github.com/rails/arel/pull/206
3+
class Arel::Table
4+
def hash
5+
@name.hash
6+
end
7+
end
8+
end

script/bench.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ def bench(path)
117117

118118
puts "Starting benchmark..."
119119

120+
# asset precompilation is a dog, wget to force it
121+
run "wget http://127.0.0.1:#{@port}/ -o tmp/test.html"
120122
home_page = bench("/")
121123
topic_page = bench("/t/oh-how-i-wish-i-could-shut-up-like-a-tunnel-for-so/69")
122124

0 commit comments

Comments
 (0)