mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
move alias method sanitize_conditions
to a correct place
This commit is contained in:
parent
6ac2655eca
commit
424b2d8594
1 changed files with 1 additions and 2 deletions
|
@ -29,6 +29,7 @@ module ActiveRecord
|
|||
end
|
||||
end
|
||||
alias_method :sanitize_sql, :sanitize_sql_for_conditions
|
||||
alias_method :sanitize_conditions, :sanitize_sql
|
||||
|
||||
# Accepts an array, hash, or string of SQL conditions and sanitizes
|
||||
# them into a valid SQL fragment for a SET clause.
|
||||
|
@ -122,8 +123,6 @@ module ActiveRecord
|
|||
end
|
||||
end
|
||||
|
||||
alias_method :sanitize_conditions, :sanitize_sql
|
||||
|
||||
def replace_bind_variables(statement, values) #:nodoc:
|
||||
raise_if_bind_arity_mismatch(statement, statement.count('?'), values.size)
|
||||
bound = values.dup
|
||||
|
|
Loading…
Reference in a new issue