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