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

Version Path
switchman-1.9.2 app/models/switchman/shard.rb
switchman-1.9.1 app/models/switchman/shard.rb
switchman-1.9.0 app/models/switchman/shard.rb
switchman-1.8.2 app/models/switchman/shard.rb
switchman-1.8.1 app/models/switchman/shard.rb
switchman-1.8.0 app/models/switchman/shard.rb
switchman-1.7.4 app/models/switchman/shard.rb
switchman-1.7.3 app/models/switchman/shard.rb
switchman-1.7.2 app/models/switchman/shard.rb
switchman-1.7.1 app/models/switchman/shard.rb
switchman-1.7.0 app/models/switchman/shard.rb
switchman-1.6.1 app/models/switchman/shard.rb
switchman-1.6.0 app/models/switchman/shard.rb
switchman-1.5.21 app/models/switchman/shard.rb
switchman-1.5.20 app/models/switchman/shard.rb
switchman-1.5.19 app/models/switchman/shard.rb
switchman-1.5.18 app/models/switchman/shard.rb
switchman-1.5.17 app/models/switchman/shard.rb
switchman-1.5.16 app/models/switchman/shard.rb
switchman-1.5.15 app/models/switchman/shard.rb