mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Revert "only mutate the scope object in the bind
method"
This reverts commit 1b9e19cd22
.
This commit is contained in:
parent
f42c96331a
commit
acf7e86024
1 changed files with 1 additions and 1 deletions
|
@ -41,12 +41,12 @@ module ActiveRecord
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue