Module: Caffeinate::Dripper::Perform::ClassMethods

Defined in:
lib/caffeinate/dripper/perform.rb

Instance Method Summary collapse

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_mailingsObject



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