instance method
append_to_connected_to_stack
Ruby on Rails edge
Since v7.0.10 Private — implementation detail, not part of the public APISignature
append_to_connected_to_stack(entry)
No documentation comment.
Parameters
-
entryreq
Source
# File activerecord/lib/active_record/connection_handling.rb, line 431
def append_to_connected_to_stack(entry)
if entry[:shard].present? && entry[:klasses].any?(&:shard_swapping_prohibited?)
raise ShardSwapProhibitedError, "cannot swap `shard` while shard swapping is prohibited."
end
connected_to_stack << entry
end
Defined in activerecord/lib/active_record/connection_handling.rb line 431
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionHandling