Skip to content

Commit acf7e86

Browse files
committed
Revert "only mutate the scope object in the bind method"
This reverts commit 1b9e19c.
1 parent f42c963 commit acf7e86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/associations/association_scope.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ def column_for(table_name, column_name)
4141
def bind_value(scope, column, value)
4242
substitute = alias_tracker.connection.substitute_at(
4343
column, scope.bind_values.length)
44+
scope.bind_values += [[column, value]]
4445
substitute
4546
end
4647

4748
def bind(scope, table_name, column_name, value)
4849
column = column_for table_name, column_name
49-
scope.bind_values += [[column, value]]
5050
bind_value scope, column, value
5151
end
5252

0 commit comments

Comments
 (0)