aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/arel/session.rb4
1 files changed, 2 insertions, 2 deletions
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