instance method
verify!
Ruby on Rails 5.1.7
Signature
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 440
def verify!(*ignored)
if ignored.size > 0
ActiveSupport::Deprecation.warn("Passing arguments to #verify method of the connection has no effect and has been deprecated. Please remove all arguments from the #verify method call.")
end
reconnect! unless active?
end
Defined in activerecord/lib/active_record/connection_adapters/abstract_adapter.rb line 440
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::AbstractAdapter