Module: AppMonitorRuby
- Defined in:
- lib/application_controller.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
2 3 4 |
# File 'lib/application_controller.rb', line 2 def self.included(base) base.around_filter :exception_catcher end |
Instance Method Details
#exception_catcher(&block) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/application_controller.rb', line 8 def exception_catcher(&block) begin yield rescue Exception => exception event_notifier = EventNotifier.new event_notifier.notify(exception,request,params) raise exception end end |