instance method throw_away!

Ruby on Rails 7.1.6

Since v6.1.7.10

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

throw_away!()

Removes the connection from the pool and disconnect it.

Source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 749
      def throw_away!
        pool.remove self
        disconnect!
      end

Defined in activerecord/lib/active_record/connection_adapters/abstract_adapter.rb line 749 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::AbstractAdapter

Type at least 2 characters to search.

↑↓ navigate · open · esc close