class method self.connection_handlers=

Ruby on Rails 7.0.10

Since v6.1.7.10 Last seen in v7.0.10

Available in: v6.1.7.10 v7.0.10

Signature

self.connection_handlers=(handlers)

No documentation comment.

Parameters

handlers req
Source
# File activerecord/lib/active_record/core.rb, line 112
      def self.connection_handlers=(handlers)
        if ActiveRecord.legacy_connection_handling
          ActiveSupport::Deprecation.warn(<<~MSG)
            Using legacy connection handling is deprecated. Please set
            `legacy_connection_handling` to `false` in your application.

            The new connection handling does not support `connection_handlers`
            getter and setter.

            Read more about how to migrate at: https://guides.rubyonrails.org/v7.0/active_record_multiple_databases.html#migrate-to-the-new-connection-handling
          MSG
        else
          raise NotImplementedError, "The new connection handling does not support multiple connection handlers."
        end

        @@connection_handlers = handlers
      end

Defined in activerecord/lib/active_record/core.rb line 112 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Core

Type at least 2 characters to search.

↑↓ navigate · open · esc close