instance method
throw_away!
Ruby on Rails edge
Since v6.1.7.10Signature
throw_away!()
Removes the connection from the pool and disconnect it.
Source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 817
def throw_away!
pool.remove self
disconnect!
end
Defined in activerecord/lib/active_record/connection_adapters/abstract_adapter.rb line 817
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::AbstractAdapter