Permalink
Browse files

Revert "Work around undiagnosed bug that's draining a relation's bind…

…_values"

This reverts commit 06cc38a.
  • Loading branch information...
1 parent da5e5c5 commit cfa4c640402f536da896b231506681fb3a96a0d4 @carlosantoniodasilva carlosantoniodasilva committed Jan 15, 2013
View
1 activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
@@ -4,7 +4,6 @@ module DatabaseStatements
# Converts an arel AST to SQL
def to_sql(arel, binds = [])
if arel.respond_to?(:ast)
- binds = binds.dup
visitor.accept(arel.ast) do
quote(*binds.shift.reverse)
end

0 comments on commit cfa4c64

Please sign in to comment.