diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-12-30 21:14:59 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-12-30 21:14:59 +0900 |
commit | 74ac546640487af45e62d599bc85cb30b725ea7f (patch) | |
tree | 6f8d7679f8467b829c24ac0e71ebc9e64590a37f /activerecord/lib | |
parent | 18325d733360fc864eb800d95e56f404dfeeb7d6 (diff) | |
download | rails-74ac546640487af45e62d599bc85cb30b725ea7f.tar.gz rails-74ac546640487af45e62d599bc85cb30b725ea7f.tar.bz2 rails-74ac546640487af45e62d599bc85cb30b725ea7f.zip |
Remove deprecated `#insert_sql`, `#update_sql`, and `#delete_sql`
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb | 6 |
1 files changed, 0 insertions, 6 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 7e7a3881f5..2c352819fb 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb @@ -126,22 +126,16 @@ module ActiveRecord id_value || last_inserted_id(value) end alias create insert - alias insert_sql insert - deprecate insert_sql: :insert # Executes the update statement and returns the number of rows affected. def update(arel, name = nil, binds = []) exec_update(to_sql(arel, binds), name, binds) end - alias update_sql update - deprecate update_sql: :update # Executes the delete statement and returns the number of rows affected. def delete(arel, name = nil, binds = []) exec_delete(to_sql(arel, binds), name, binds) end - alias delete_sql delete - deprecate delete_sql: :delete # Returns +true+ when the connection adapter supports prepared statement # caching, otherwise returns +false+ |