From 98fc25991137ee09b6800578117f8c1c322680f2 Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Sat, 29 Nov 2014 17:22:17 -0700 Subject: Remove `engine` from `TreeManager` and subclasses This constructor parameter was unused for everything except the convenience methods `to_sql` and `where_sql`. We can pass the engine into those methods directly. --- test/visitors/test_bind_visitor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/visitors') diff --git a/test/visitors/test_bind_visitor.rb b/test/visitors/test_bind_visitor.rb index 79d340e5cd..f0007cabbf 100644 --- a/test/visitors/test_bind_visitor.rb +++ b/test/visitors/test_bind_visitor.rb @@ -17,7 +17,7 @@ module Arel # substitutes binds with values from block def test_assignment_binds_are_substituted table = Table.new(:users) - um = Arel::UpdateManager.new Table.engine + um = Arel::UpdateManager.new bp = Nodes::BindParam.new um.set [[table[:name], bp]] visitor = Class.new(Arel::Visitors::ToSql) { -- cgit v1.2.3