aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/arel/collectors/bind.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/arel/collectors/bind.rb')
-rw-r--r--activerecord/lib/arel/collectors/bind.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/activerecord/lib/arel/collectors/bind.rb b/activerecord/lib/arel/collectors/bind.rb
new file mode 100644
index 0000000000..6f8912575d
--- /dev/null
+++ b/activerecord/lib/arel/collectors/bind.rb
@@ -0,0 +1,24 @@
+# frozen_string_literal: true
+
+module Arel # :nodoc: all
+ module Collectors
+ class Bind
+ def initialize
+ @binds = []
+ end
+
+ def <<(str)
+ self
+ end
+
+ def add_bind(bind)
+ @binds << bind
+ self
+ end
+
+ def value
+ @binds
+ end
+ end
+ end
+end