From ac3af505aa5df38c3826fccb42107aa88693ee17 Mon Sep 17 00:00:00 2001
From: Yasuo Honda <yasuo.honda@gmail.com>
Date: Fri, 2 May 2014 21:24:33 +0900
Subject: Add collector argument to address ArgumentError: wrong number of
 arguments (2 for 1)

---
 lib/arel/visitors/oracle.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'lib/arel/visitors')

diff --git a/lib/arel/visitors/oracle.rb b/lib/arel/visitors/oracle.rb
index 2cdbafadad..699b52fe9a 100644
--- a/lib/arel/visitors/oracle.rb
+++ b/lib/arel/visitors/oracle.rb
@@ -74,7 +74,7 @@ module Arel
         collector << " )"
       end
 
-      def visit_Arel_Nodes_UpdateStatement o
+      def visit_Arel_Nodes_UpdateStatement o, collector
         # Oracle does not allow ORDER BY/LIMIT in UPDATEs.
         if o.orders.any? && o.limit.nil?
           # However, there is no harm in silently eating the ORDER BY clause if no LIMIT has been provided,
-- 
cgit v1.2.3