aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2017-07-21 08:02:58 -0400
committerSean Griffin <sean@seantheprogrammer.com>2017-07-21 08:02:58 -0400
commitf031a3b9aa6a8093802e0188abce58e0b997078e (patch)
tree5a8acd14ac5af0a568e436a89a07e759bbd428e0 /lib/arel
parent67a51c62f4e19390cd8eb408596ca48bb0806362 (diff)
downloadrails-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 'lib/arel')
-rw-r--r--lib/arel/collectors/substitute_binds.rb (renamed from lib/arel/collectors/bind.rb)2
-rw-r--r--lib/arel/visitors/bind_substitute.rb10
2 files changed, 1 insertions, 11 deletions
diff --git a/lib/arel/collectors/bind.rb b/lib/arel/collectors/substitute_binds.rb
index dfa79d1001..62589c44e8 100644
--- a/lib/arel/collectors/bind.rb
+++ b/lib/arel/collectors/substitute_binds.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module Arel
module Collectors
- class Bind
+ class SubstituteBinds
def initialize
@parts = []
end
diff --git a/lib/arel/visitors/bind_substitute.rb b/lib/arel/visitors/bind_substitute.rb
deleted file mode 100644
index 52c96b0d72..0000000000
--- a/lib/arel/visitors/bind_substitute.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-# frozen_string_literal: true
-module Arel
- module Visitors
- class BindSubstitute
- def initialize delegate
- @delegate = delegate
- end
- end
- end
-end