From d217e57a78a5df20fe1248bac864ad0da58b2dc6 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 20 Jul 2010 10:58:00 -0700 Subject: avoid shadowing a variable --- lib/arel/session.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/arel/session.rb b/lib/arel/session.rb index c7fcc53a3b..6d115e7078 100644 --- a/lib/arel/session.rb +++ b/lib/arel/session.rb @@ -33,8 +33,8 @@ module Arel end def read(select) - (@read ||= Hash.new do |hash, select| - hash[select] = select.call + (@read ||= Hash.new do |hash, x| + hash[x] = x.call end)[select] end -- cgit v1.2.3