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
5
6
7
|
# File 'lib/simple_record/sharding.rb', line 5
def self.included(base)
end
|
Instance Method Details
#sharded_domain ⇒ Object
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# File 'lib/simple_record/sharding.rb', line 92
def sharded_domain
options = self.class.sharding_options
sharded_domain = "#{domain}_#{self.send(options[:map])}"
sharded_domain
end
|