instance method
reconnect!
Ruby on Rails 3.2.22.5
Since v2.2.3Signature
reconnect!()
Disconnects from the database if already connected, and establishes a new connection with the database.
Source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 182
def reconnect!
@active = true
end
Defined in activerecord/lib/active_record/connection_adapters/abstract_adapter.rb line 182
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::AbstractAdapter