instance method
reconnect!
Ruby on Rails 3.1.12
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 153
def reconnect!
@active = true
end
Defined in activerecord/lib/active_record/connection_adapters/abstract_adapter.rb line 153
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::AbstractAdapter