mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Make Chain enumerable
This commit is contained in:
parent
0ae5ba4d1d
commit
c7b0a349ae
2 changed files with 8 additions and 0 deletions
|
@ -1,9 +1,12 @@
|
|||
2.13.1
|
||||
-----------
|
||||
|
||||
- Make Sidekiq::Middleware::Chain Enumerable
|
||||
- Make summary bar and graphs responsive [manishval] [#1025]
|
||||
|
||||
2.13.0
|
||||
-----------
|
||||
|
||||
- Adding button to move scheduled job to main queue [guiceolin, #1020]
|
||||
- fix i18n support resetting saved locale when job is retried [#1011]
|
||||
- log rotation via USR2 now closes the old logger [#1008]
|
||||
|
|
|
@ -61,8 +61,13 @@ module Sidekiq
|
|||
#
|
||||
module Middleware
|
||||
class Chain
|
||||
include Enumerable
|
||||
attr_reader :entries
|
||||
|
||||
def each(&block)
|
||||
entries.each(&block)
|
||||
end
|
||||
|
||||
def initialize
|
||||
@entries = []
|
||||
yield self if block_given?
|
||||
|
|
Loading…
Reference in a new issue