Class: Chaskiq::TracksController

Inherits:
ApplicationController show all
Defined in:
app/controllers/chaskiq/tracks_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#authentication_method, #get_referrer

Instance Method Details

#clickObject



20
21
22
23
24
25
26
# File 'app/controllers/chaskiq/tracks_controller.rb', line 20

def click
  find_subscriber
  #TODO: if subscriber has not an open , we will track open too!
  #that's probably due to plain email or image not beign displayed
  @subscriber.track_click({ host: get_referrer, campaign_id: @campaign.id, data: params[:r] })
  redirect_to params[:r]
end