Sha256: 0c2e047d148cc5bb9582f56abd1daa03cbadb411aa15914ace6a7899986cdac5

Contents?: true

Size: 276 Bytes

Versions: 5

Compression:

Stored size: 276 Bytes

Contents

module Octopus
  module Association
    def self.included(base)
      base.send(:include, Octopus::ShardTracking::Dynamic)
    end

    def current_shard
      owner.current_shard
    end
  end
end

ActiveRecord::Associations::Association.send(:include, Octopus::Association)

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
misha-ar-octopus-0.8.7 lib/octopus/association.rb
misha-ar-octopus-0.8.5 lib/octopus/association.rb
ar-octopus-0.8.5 lib/octopus/association.rb
ar-octopus-0.8.4 lib/octopus/association.rb
ar-octopus-0.8.3 lib/octopus/association.rb