From fca29750e40e9499aa6fb6de4fa3d2d972d5a4d5 Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Wed, 3 Jul 2013 20:49:57 +0200 Subject: remove deprecated `PostgreSQLAdapter#outside_transaction?` method. --- .../connection_adapters/postgresql/database_statements.rb | 7 ------- 1 file changed, 7 deletions(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb b/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb index 9b5170f657..751655e61c 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb @@ -218,13 +218,6 @@ module ActiveRecord execute "ROLLBACK" end - def outside_transaction? - message = "#outside_transaction? is deprecated. This method was only really used " \ - "internally, but you can use #transaction_open? instead." - ActiveSupport::Deprecation.warn message - @connection.transaction_status == PGconn::PQTRANS_IDLE - end - def create_savepoint execute("SAVEPOINT #{current_savepoint_name}") end -- cgit v1.2.3