提交 fd1364e0 编写于 作者: A Andrey Deryabin

remove never called method `limited_update_conditions`

上级 2a843b35
......@@ -287,10 +287,6 @@ def empty_insert_statement_value
"DEFAULT VALUES"
end
def limited_update_conditions(where_sql, quoted_table_name, quoted_primary_key)
"WHERE #{quoted_primary_key} IN (SELECT #{quoted_primary_key} FROM #{quoted_table_name} #{where_sql})"
end
# Sanitizes the given LIMIT parameter in order to prevent SQL injection.
#
# The +limit+ may be anything that can evaluate to a string via #to_s. It
......
......@@ -631,10 +631,6 @@ def case_insensitive_comparison(table, attribute, column, value)
end
end
def limited_update_conditions(where_sql, quoted_table_name, quoted_primary_key)
where_sql
end
def strict_mode?
self.class.type_cast_config_to_boolean(@config.fetch(:strict, true))
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册