mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
only mutate the scope object in the bind
method
This commit is contained in:
parent
4f82553e54
commit
1b9e19cd22
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