Module: Switchman::StandardError
- Defined in:
- lib/switchman/standard_error.rb
Instance Method Summary collapse
Instance Method Details
#current_shard(category = :primary) ⇒ Object
8 9 10 |
# File 'lib/switchman/standard_error.rb', line 8 def current_shard(category = :primary) @active_shards[category] || Shard.default end |
#initialize(*args) ⇒ Object
3 4 5 6 |
# File 'lib/switchman/standard_error.rb', line 3 def initialize(*args) @active_shards = Shard.send(:active_shards).dup super end |