diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-11-10 20:35:23 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-11-10 20:35:23 -0200 |
commit | 19067582104e8fc0e98a977f5f0e6a4cd06d8c1a (patch) | |
tree | 221ee1ead97a2d3a270afaac21882121f98f46d7 /activerecord/lib | |
parent | 82e20030d4dc022c3a25ecc82315bda553a8659d (diff) | |
parent | fd1364e021155d04318571ec08d50e2c740199db (diff) | |
download | rails-19067582104e8fc0e98a977f5f0e6a4cd06d8c1a.tar.gz rails-19067582104e8fc0e98a977f5f0e6a4cd06d8c1a.tar.bz2 rails-19067582104e8fc0e98a977f5f0e6a4cd06d8c1a.zip |
Merge pull request #17585 from aderyabin/remove_limited_update_conditions
remove never called method `limited_update_conditions`
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb | 4 | ||||
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb index 1a3ed28d66..12b16b2473 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb @@ -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 diff --git a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb index 26015528e5..167453657d 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb @@ -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 |