From 93708c2056089dce298ae3d87de87d2625164978 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Wed, 23 Jun 2010 17:04:18 -0700 Subject: Speed up Header#each by avoiding &block creation --- lib/arel/algebra/header.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/arel/algebra/header.rb b/lib/arel/algebra/header.rb index 9954da5b65..3b8aea3422 100644 --- a/lib/arel/algebra/header.rb +++ b/lib/arel/algebra/header.rb @@ -9,8 +9,8 @@ module Arel end end - def each(&block) - to_ary.each(&block) + def each + to_ary.each { |e| yield e } self end -- cgit v1.2.3