public
Description: Email notification and managed error templates for Radiant and other extensions
Homepage: http://digitalpulp.com
Clone URL: git://github.com/digitalpulp/radiant-exception-notification-extension.git
radiant-exception-notification-extension / exception_notification_extension.rb
100644 17 lines (13 sloc) 0.49 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require_dependency 'application_controller'
 
class ExceptionNotificationExtension < Radiant::Extension
  version "0.8.0"
  description "Adds exception notification with Radiant-managed error pages"
  url "http://github.com/digitalpulp"
  
  def activate
    ApplicationController.send :include, ExceptionNotification
    Page.send(:include, ExceptionNotification::PageExtensions)
    InternalServerErrorPage # instantiate class within Page.descendants
  end
  
  def deactivate
  end
  
end