From c52df44784308e5d3cd608566fd9a3514ce28959 Mon Sep 17 00:00:00 2001 From: Alex Lin Date: Mon, 24 Mar 2014 23:42:27 -0400 Subject: Removed all the fiels in lib/arel/visitors/ which needs dependency on 'a' also fixed the test case for : test/visitors/test_to_sql.rb:22 which pass in the parameter attribute e.g the parameter a. --- lib/arel/visitors/bind_visitor.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/arel/visitors/bind_visitor.rb') diff --git a/lib/arel/visitors/bind_visitor.rb b/lib/arel/visitors/bind_visitor.rb index 77b3f8237b..5cb251ffde 100644 --- a/lib/arel/visitors/bind_visitor.rb +++ b/lib/arel/visitors/bind_visitor.rb @@ -13,15 +13,15 @@ module Arel private - def visit_Arel_Nodes_Assignment o, a + def visit_Arel_Nodes_Assignment o if o.right.is_a? Arel::Nodes::BindParam - "#{visit o.left, a} = #{visit o.right, a}" + "#{visit o.left} = #{visit o.right}" else super end end - def visit_Arel_Nodes_BindParam o, a + def visit_Arel_Nodes_BindParam o if @block @block.call else -- cgit v1.2.3