instance method reset!

Ruby on Rails 2.2.3

Last seen in v3.0.20

Available in: v2.2.3 v2.3.18 v3.0.20

Signature

reset!()

No documentation comment.

Source
# File activerecord/lib/active_record/connection_adapters/mysql_adapter.rb, line 289
      def reset!
        if @connection.respond_to?(:change_user)
          # See http://bugs.mysql.com/bug.php?id=33540 -- the workaround way to
          # reset the connection is to change the user to the same user.
          @connection.change_user(@config[:username], @config[:password], @config[:database])
          configure_connection
        end
      end

Defined in activerecord/lib/active_record/connection_adapters/mysql_adapter.rb line 289 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::MysqlAdapter

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close