Sha256: 984f6ebcf2373b2a6842d9f41465039c55514f1e588a1471126557cd43dcc182

Contents?: true

Size: 250 Bytes

Versions: 6

Compression:

Stored size: 250 Bytes

Contents

module Switchman
  module StandardError
    def initialize(*args)
      @active_shards = Shard.send(:active_shards).dup
      super
    end

    def current_shard(category = :default)
      @active_shards[category] || Shard.default
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
switchman-1.6.1 lib/switchman/standard_error.rb
switchman-1.6.0 lib/switchman/standard_error.rb
switchman-1.5.21 lib/switchman/standard_error.rb
switchman-1.5.20 lib/switchman/standard_error.rb
switchman-1.5.19 lib/switchman/standard_error.rb
switchman-1.5.18 lib/switchman/standard_error.rb