instance method
reconnect!
Ruby on Rails 4.2.9
Since v2.2.3Signature
reconnect!()
Disconnects from the database if already connected, and establishes a new connection with the database. Implementors should call super if they override the default implementation.
Source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 302
def reconnect!
clear_cache!
reset_transaction
end
Defined in activerecord/lib/active_record/connection_adapters/abstract_adapter.rb line 302
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::AbstractAdapter