Method: ActiveRecord::ConnectionAdapters::AbstractAdapter#verify!
- Defined in:
- lib/active_record/connection_adapters/abstract_adapter.rb
#verify!(*ignored) ⇒ Object
Checks whether the connection to the database is still active (i.e. not stale). This is done under the hood by calling active?
. If the connection is no longer active, then this method will reconnect to the database.
152 153 154 |
# File 'lib/active_record/connection_adapters/abstract_adapter.rb', line 152 def verify!(*ignored) reconnect! unless active? end |