1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/lib/arel/collectors/sql_string.rb

25 lines
370 B
Ruby
Raw Normal View History

2014-04-08 17:18:44 -04:00
# encoding: utf-8
require 'arel/collectors/plain_string'
module Arel
module Collectors
class SQLString < PlainString
def initialize(*)
super
@bind_index = 1
end
def add_bind bind
self << yield(@bind_index)
@bind_index += 1
self
end
2014-04-09 17:31:10 -04:00
def compile bvs
value
end
end
end
end