lib/sidekiq/expected_failures.rb in sidekiq-expected_failures-0.0.1 vs lib/sidekiq/expected_failures.rb in sidekiq-expected_failures-0.2.0

- old
+ new

@@ -2,9 +2,18 @@ require "sidekiq/expected_failures/version" require "sidekiq/expected_failures/middleware" require "sidekiq/expected_failures/web" module Sidekiq + + def self.expected_failures=(exceptions) + @expected_failures = exceptions + end + + def self.expected_failures + @expected_failures || {} + end + module ExpectedFailures def self.dates Sidekiq.redis do |c| c.smembers "expected:dates"