Module: Caffeinate::Dripper::Perform::ClassMethods
- Defined in:
- lib/caffeinate/dripper/perform.rb
Instance Method Summary collapse
-
#perform! ⇒ Object
Convenience method for Dripper::Base#perform.
- #upcoming_mailings ⇒ Object
Instance Method Details
#perform! ⇒ Object
Convenience method for Dripper::Base#perform
31 32 33 |
# File 'lib/caffeinate/dripper/perform.rb', line 31 def perform! new.perform! end |
#upcoming_mailings ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/caffeinate/dripper/perform.rb', line 35 def upcoming_mailings Caffeinate::Mailing .upcoming .unsent .joins(:caffeinate_campaign_subscription) .merge(Caffeinate::CampaignSubscription.active.where(caffeinate_campaign: campaign)) end |