Sha256: 218d6bffb17143c66055c3c75251a1ff8c27a8fc598d83b15c6659f561f2001f
Contents?: true
Size: 281 Bytes
Versions: 4
Compression:
Stored size: 281 Bytes
Contents
# frozen_string_literal: true module Switchman module StandardError def initialize(*args) @active_shards = Shard.send(:active_shards).dup super end def current_shard(category = :primary) @active_shards[category] || Shard.default end end end
Version data entries
4 entries across 4 versions & 1 rubygems