1
0
Fork 0
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:
Andrey Deryabin 2014-11-11 01:33:29 +03:00
parent 2a843b3538
commit fd1364e021
2 changed files with 0 additions and 8 deletions

View file

@ -287,10 +287,6 @@ module ActiveRecord
"DEFAULT VALUES" "DEFAULT VALUES"
end 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. # 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 # The +limit+ may be anything that can evaluate to a string via #to_s. It

View file

@ -631,10 +631,6 @@ module ActiveRecord
end end
end end
def limited_update_conditions(where_sql, quoted_table_name, quoted_primary_key)
where_sql
end
def strict_mode? def strict_mode?
self.class.type_cast_config_to_boolean(@config.fetch(:strict, true)) self.class.type_cast_config_to_boolean(@config.fetch(:strict, true))
end end