Class: Caffeinate::CampaignSubscriptionsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/caffeinate/campaign_subscriptions_controller.rb

Instance Method Summary collapse

Instance Method Details

#subscribeObject



15
16
17
# File 'app/controllers/caffeinate/campaign_subscriptions_controller.rb', line 15

def subscribe
  @campaign_subscription.resubscribe!(true)
end

#unsubscribeObject



11
12
13
# File 'app/controllers/caffeinate/campaign_subscriptions_controller.rb', line 11

def unsubscribe
  @campaign_subscription.unsubscribe!(true)
end