Module: ActiveRecord::Turntable::ActiveRecordExt::AbstractAdapter
- Extended by:
- Compatibility
- Defined in:
- lib/active_record/turntable/active_record_ext/abstract_adapter.rb
Defined Under Namespace
Modules: V5_0, V5_0_3, V5_1, V5_2
Class Method Summary
collapse
Instance Method Summary
collapse
[], compatible_versions, extended, find_compatible_module, find_compatible_version
Class Method Details
.prepended(klass) ⇒ Object
6
7
8
9
|
# File 'lib/active_record/turntable/active_record_ext/abstract_adapter.rb', line 6
def self.prepended(klass)
klass.prepend(self.compatible_module)
klass.class_eval { protected :log }
end
|
Instance Method Details
#turntable_shard_name ⇒ Object
105
106
107
|
# File 'lib/active_record/turntable/active_record_ext/abstract_adapter.rb', line 105
def turntable_shard_name
instance_variable_defined?(:@turntable_shard_name) ? @turntable_shard_name : nil
end
|
#turntable_shard_name=(name) ⇒ Object
101
102
103
|
# File 'lib/active_record/turntable/active_record_ext/abstract_adapter.rb', line 101
def turntable_shard_name=(name)
@turntable_shard_name = name.to_s
end
|