mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
remove never called method limited_update_conditions
This commit is contained in:
parent
2a843b3538
commit
fd1364e021
2 changed files with 0 additions and 8 deletions
|
@ -287,10 +287,6 @@ module ActiveRecord
|
|||
"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 @@ module ActiveRecord
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue