Sha256: 6ce84dba35ae591388af4a6c58feec9a8cab3d5728f9ca6498fe6117d73e5d3f

Contents?: true

Size: 268 Bytes

Versions: 4

Compression:

Stored size: 268 Bytes

Contents

module ActiveRecord
  module ShardFor
    module STI
      extend ActiveSupport::Concern

      included do
        self.abstract_class = true
        self.shard_repository = STIShardRepository.new(self, superclass.shard_repository.shards)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activerecord-shard_for-0.7.0 lib/activerecord/shard_for/sti.rb
activerecord-shard_for-0.6.1 lib/activerecord/shard_for/sti.rb
activerecord-shard_for-0.6.0 lib/activerecord/shard_for/sti.rb
activerecord-shard_for-0.5.0 lib/activerecord/shard_for/sti.rb