rails/init.rb
require 'rake'
require 'rake/tasklib'
require "action_mailer"
require "exception_notification/notified_task"
require "exception_notification"
# To load the autoloads.
ExceptionNotification
Object.class_eval do
include ExceptionNotification::Notifiable
end
#It appears that the view path is auto-added by rails... hmmm.
#if ActionController::Base.respond_to?(:append_view_path)
# puts "view path before: #{ActionController::Base.view_paths}"
# ActionController::Base.append_view_path(File.join(File.dirname(__FILE__), 'app', 'views','exception_notifiable'))
# puts "view path After: #{ActionController::Base.view_paths}"
#end