1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #17585 from aderyabin/remove_limited_update_conditions

remove never called method `limited_update_conditions`
This commit is contained in:
Rafael Mendonça França 2014-11-10 20:35:23 -02:00
commit 1906758210
2 changed files with 0 additions and 8 deletions

View file

@ -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

View file

@ -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