mail_spy 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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