method
append_to_connected_to_stack
v7.1.3.2 -
Show latest stable
- Class:
ActiveRecord::ConnectionHandling
append_to_connected_to_stack(entry)private
No documentation available.
# 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