Permalink
Browse files

Revert "only mutate the scope object in the `bind` method"

This reverts commit 1b9e19c.
  • Loading branch information...
1 parent f42c963 commit acf7e86024fa8f7768f02a84688ae6e20c808c9c @tenderlove tenderlove committed Feb 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations/association_scope.rb
@@ -41,12 +41,12 @@ def column_for(table_name, column_name)
def bind_value(scope, column, value)
substitute = alias_tracker.connection.substitute_at(
column, scope.bind_values.length)
+ scope.bind_values += [[column, value]]
substitute
end
def bind(scope, table_name, column_name, value)
column = column_for table_name, column_name
- scope.bind_values += [[column, value]]
bind_value scope, column, value
end

0 comments on commit acf7e86

Please sign in to comment.