mail_spy 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mail_spy/manager.rb +2 -2
- data/lib/mail_spy/version.rb +1 -1
- metadata +1 -1
data/lib/mail_spy/manager.rb
CHANGED
@@ -88,8 +88,8 @@ module MailSpy
|
|
88
88
|
while true
|
89
89
|
emails = MailSpy::Email.
|
90
90
|
limit(step).offset(offset).
|
91
|
-
where(:schedule_at.lte => current_time, :sent => false, :failed => false).
|
92
|
-
break if emails.blank
|
91
|
+
where(:schedule_at.lte => current_time, :sent => false, :failed => false).collect
|
92
|
+
break if emails.count <= 0 #returns enumerator which is never blank
|
93
93
|
emails.each do |email|
|
94
94
|
wq.enqueue_b do
|
95
95
|
begin
|
data/lib/mail_spy/version.rb
CHANGED