instance method
disconnect!
Ruby on Rails 3.1.12
Since v3.1.12Signature
disconnect!()
Disconnects from the database if already connected. Otherwise, this method does nothing.
Source
# File activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb, line 230
def disconnect!
unless @connection.nil?
@connection.close
@connection = nil
end
end
Defined in activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb line 230
· View on GitHub
· Improve this page
· Find usages on GitHub