diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-11-29 17:22:17 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-11-29 17:22:17 -0700 |
commit | 98fc25991137ee09b6800578117f8c1c322680f2 (patch) | |
tree | 038381ae4465d6ea9950ecda9ef10822fd3ff9c6 /test/visitors | |
parent | 7508284800f67b4611c767bff9eae7045674b66f (diff) | |
download | rails-98fc25991137ee09b6800578117f8c1c322680f2.tar.gz rails-98fc25991137ee09b6800578117f8c1c322680f2.tar.bz2 rails-98fc25991137ee09b6800578117f8c1c322680f2.zip |
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.
Diffstat (limited to 'test/visitors')
-rw-r--r-- | test/visitors/test_bind_visitor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |