Permalink
Browse files

move alias method `sanitize_conditions` to a correct place

  • Loading branch information...
1 parent 6ac2655 commit 424b2d8594121456ed347957714a20c62d09a5cd @dmitry dmitry committed Feb 9, 2014
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/lib/active_record/sanitization.rb
@@ -29,6 +29,7 @@ def sanitize_sql_for_conditions(condition, table_name = self.table_name)
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 @@ def sanitize_sql_array(ary)
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

0 comments on commit 424b2d8

Please sign in to comment.