diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2017-07-21 08:02:58 -0400 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2017-07-21 08:02:58 -0400 |
commit | f031a3b9aa6a8093802e0188abce58e0b997078e (patch) | |
tree | 5a8acd14ac5af0a568e436a89a07e759bbd428e0 /test | |
parent | 67a51c62f4e19390cd8eb408596ca48bb0806362 (diff) | |
download | rails-f031a3b9aa6a8093802e0188abce58e0b997078e.tar.gz rails-f031a3b9aa6a8093802e0188abce58e0b997078e.tar.bz2 rails-f031a3b9aa6a8093802e0188abce58e0b997078e.zip |
Rename `Collectors::Bind`
The "bind collector" does not actually collect bind params at all, it
substitutes them out of the final AST, replacing them with a quoted
value.
Diffstat (limited to 'test')
-rw-r--r-- | test/collectors/test_bind_collector.rb | 4 | ||||
-rw-r--r-- | test/collectors/test_sql_string.rb | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/test/collectors/test_bind_collector.rb b/test/collectors/test_bind_collector.rb index 877aa20043..fef157782b 100644 --- a/test/collectors/test_bind_collector.rb +++ b/test/collectors/test_bind_collector.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true require 'helper' -require 'arel/collectors/bind' +require 'arel/collectors/substitute_binds' module Arel module Collectors @@ -12,7 +12,7 @@ module Arel end def collect node - @visitor.accept(node, Collectors::Bind.new) + @visitor.accept(node, Collectors::SubstituteBinds.new) end def compile node diff --git a/test/collectors/test_sql_string.rb b/test/collectors/test_sql_string.rb index 92f1bf0fba..769c2e6d53 100644 --- a/test/collectors/test_sql_string.rb +++ b/test/collectors/test_sql_string.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true require 'helper' -require 'arel/collectors/bind' module Arel module Collectors |