Sha256: 1c622d104ae24ffc69128d9d574b61995e0ef77f7c9bb98e32825fcbe1bcf75c

Contents?: true

Size: 1.04 KB

Versions: 3

Compression:

Stored size: 1.04 KB

Contents

require "action_mailer"

require File.join(File.dirname(__FILE__), '..', 'lib', "super_exception_notifier", "custom_exception_classes")
require File.join(File.dirname(__FILE__), '..', 'lib', "super_exception_notifier", "custom_exception_methods")

# Add this path to ruby load path
$:.unshift "#{File.dirname(__FILE__)}/../lib"

require "hooks_notifier" unless defined?(HooksNotifier)
require "exception_notifier" unless defined?(ExceptionNotifier)
require "exception_notifiable" unless defined?(ExceptionNotifiable)
require "exception_notifier_helper" unless defined?(ExceptionNotifierHelper)
require "notifiable" unless defined?(Notifiable)

Object.class_eval do
  include 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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pboling-super_exception_notifier-1.6.8 rails/init.rb
pboling-super_exception_notifier-1.7.0 rails/init.rb
pboling-super_exception_notifier-1.7.1 rails/init.rb