method

append_to_connected_to_stack

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ConnectionHandling
append_to_connected_to_stack(entry) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_handling.rb, line 368
      def append_to_connected_to_stack(entry)
        if shard_swapping_prohibited? && entry[:shard].present?
          raise ArgumentError, "cannot swap `shard` while shard swapping is prohibited."
        end

        connected_to_stack << entry
      end
Register or log in to add new notes.