Skip to content

Commit

Permalink
Bugfix: smembers might return nil
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Jun 13, 2010
1 parent b5faa4f commit 911de01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Worker

# Returns an array of all worker objects.
def self.all
redis.smembers(:workers).map { |id| find(id) }
Array(redis.smembers(:workers)).map { |id| find(id) }
end

# Returns an array of all worker objects currently processing
Expand Down

0 comments on commit 911de01

Please sign in to comment.