Class: NotifierApiController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/notifier_api_controller.rb

Instance Method Summary collapse

Instance Method Details

#v2Object

Under Rails 2.X, matches /notifier_api/v2/notices automatically



3
4
5
6
7
8
# File 'app/controllers/notifier_api_controller.rb', line 3

def v2
  notice = Notice.from_v2_xml(request.raw_post)
  notice.save!

  render :text => "Successfully received error from hoptoad_notifier v2!"
end