mirror of https://github.com/rails/rails
Merge pull request #21727 from yui-knk/fix/remove_unused_args
Remove not used argument `table_name` of `sanitize_sql_for_conditions`
This commit is contained in:
commit
4a7c82d206
|
@ -15,7 +15,7 @@ module ActiveRecord
|
|||
# them into a valid SQL fragment for a WHERE clause.
|
||||
# ["name='%s' and group_id='%s'", "foo'bar", 4] returns "name='foo''bar' and group_id='4'"
|
||||
# "name='foo''bar' and group_id='4'" returns "name='foo''bar' and group_id='4'"
|
||||
def sanitize_sql_for_conditions(condition, table_name = self.table_name)
|
||||
def sanitize_sql_for_conditions(condition)
|
||||
return nil if condition.blank?
|
||||
|
||||
case condition
|
||||
|
|
Loading…
Reference in New Issue