Sha256: 0afa8d008041021c1e1b555745f7f0b06ae692f107a4ff299aaaf64c8e22b62a
Contents?: true
Size: 593 Bytes
Versions: 33
Compression:
Stored size: 593 Bytes
Contents
# ActiveRecord::Base _must_ be loaded prior to the file that defines Shard # Because Switchman hooks into ActiveSupport.on_load(:active_record) and # reference it again (technically it gets referenced from inside # ConnectionHandler#establish_connection, when AR's on_load(:active_record) # hook gets called ActiveRecord::Base # in case it was referenced _before_ the on_load hook is added, then # we need to make sure we define the class someone wanted (in which case # AR's on_load hook won't be called either yet, and establish_connection # will be safe) require 'switchman/shard_internal'
Version data entries
33 entries across 33 versions & 1 rubygems