ExceptionNotifier.notify_exception does not work

We use this gem ( https://github.com/smartinez87/exception_notification ) with rails 3.2.11. We want to use the following method "ExceptionNotifier.notify_exception (e)" from the controller action and from the background process, as indicated on the wiki, but we get the following error.

undefined method `notify_exception 'for ExceptionNotifier: Class

We install version 3.0.1 of this gem. gem "exception_notification", "~> 3.0.1"

Our version of the rails is 3.2.11, and the ruby ​​version is ruby ​​1.9.2p320.

thank

+5
source share
2 answers

API notify_exception , .

Gemfile git

gem "exception_notification", git: "git://github.com/smartinez87/exception_notification.git"

API 3.0.1

ExceptionNotifier::Notifier.exception_notification(request.env, exception,
:data => {:message => "was doing something wrong"}).deliver

3.0.1 .

+6

gem

gem 'exception_notification' , '3.0.1'

bundle install

:)

+2

All Articles