instance method
append_to_connected_to_stack
Ruby on Rails 7.1.6
Since v7.0.10 PrivateSignature
append_to_connected_to_stack(entry)
No documentation comment.
Parameters
-
entryreq
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
Defined in activerecord/lib/active_record/connection_handling.rb line 368
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionHandling