Module: SimpleRecord::Sharding
- Included in:
- Base
- Defined in:
- lib/simple_record/sharding.rb
Defined Under Namespace
Modules: ClassMethods, Hashing
Classes: ShardedResults
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.included(base) ⇒ Object
7
8
9
|
# File 'lib/simple_record/sharding.rb', line 7
def self.included(base)
end
|
Instance Method Details
#sharded_domain ⇒ Object
120
121
122
123
124
125
126
127
128
129
130
131
132
|
# File 'lib/simple_record/sharding.rb', line 120
def sharded_domain
options = self.class.sharding_options
sharded_domain = "#{domain}_#{self.send(options[:map])}"
sharded_domain
end
|