Class: InviteController

Inherits:
ApplicationController
  • Object
show all
Defined in:
lib/talkable/generators/templates/app/controllers/invite_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



4
5
6
7
8
9
10
# File 'lib/talkable/generators/templates/app/controllers/invite_controller.rb', line 4

def show
  # Make sure you have configured Campaign Placements at Talkable site
  # or explicitly specify campaign tags
  # origin = Talkable.register_affiliate_member(campaign_tags: 'invite')
  origin = Talkable.register_affiliate_member
  @invite_offer = origin.offer if origin
end