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:
Sean Griffin 2015-09-22 22:13:24 -06:00
commit 4a7c82d206
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ module ActiveRecord
# them into a valid SQL fragment for a WHERE clause. # 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='%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'" # "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? return nil if condition.blank?
case condition case condition