# File lib/active_record/connection_adapters/abstract/database_statements.rb, line 5 def to_sql(arel, binds = []) if arel.respond_to?(:ast) visitor.accept(arel.ast) do quote(*binds.shift.reverse) end else arel end end