Class: ActiveRecord::ShardFor::DistkeyRouter
- Inherits:
-
ConnectionRouter
- Object
- ConnectionRouter
- ActiveRecord::ShardFor::DistkeyRouter
- Defined in:
- lib/activerecord/shard_for/distkey_router.rb
Instance Attribute Summary
Attributes inherited from ConnectionRouter
Instance Method Summary collapse
-
#route(key) ⇒ Object
Key given key.
Methods inherited from ConnectionRouter
#fetch_connection_name, #initialize
Constructor Details
This class inherits a constructor from ActiveRecord::ShardFor::ConnectionRouter
Instance Method Details
#route(key) ⇒ Object
Returns key given key.
6 7 8 |
# File 'lib/activerecord/shard_for/distkey_router.rb', line 6 def route(key) key end |