Module: ActiveShard::ActiveRecord::ShardSupport
- Included in:
- ShardedBase
- Defined in:
- lib/active_shard/active_record/shard_support.rb
Overview
To enable ActiveShard support in ActiveRecord, mix this module in to your model superclass.
eg: ActiveRecord::Base.send( :include, ActiveShard::ActiveRecord::ShardSupport )
For an explanation of why you’d use ShardedBase or ShardSupport, @see ActiveShard::ActiveRecord
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
13 14 15 |
# File 'lib/active_shard/active_record/shard_support.rb', line 13 def self.included( base ) base.extend( ClassMethods ) end |