instance method
verify!
Ruby on Rails 4.1.16
Since v2.2.3Signature
verify!(*ignored)
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.
Parameters
-
ignoredrest
Source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 312
def verify!(*ignored)
reconnect! unless active?
end
Defined in activerecord/lib/active_record/connection_adapters/abstract_adapter.rb line 312
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::AbstractAdapter