Method: ChimpactionsController#receive

Defined in:
app/controllers/chimpactions_controller.rb

#receiveObject



89
90
91
92
93
94
95
# File 'app/controllers/chimpactions_controller.rb', line 89

def receive
  if params['data']
    subscriber = Chimpactions.registered_class.find_by_email(params['data']['email'])
    subscriber.receive_webhook(params) if subscriber.respond_to?(:receive_webhook)
  end
    render :nothing => true
end