Sha256: 3b97dc1da9615464c4b32390a8a7dd3b9bc5ffeb00c0896f0959f7991dc5c7f5
Contents?: true
Size: 444 Bytes
Versions: 1
Compression:
Stored size: 444 Bytes
Contents
class Tartarus::Notifier < ActionMailer::Base self.mailer_name = 'tartarus_notifier' self.view_paths << "#{File.dirname(__FILE__)}/../../views" def notification( to, exception ) @recipients = to @from = Tartarus.configuration['sender'] @subject = "Exception raised at #{exception.controller_path}##{exception.action_name} (#{exception.exception_class}) #{exception.message}" @body[:exception] = exception end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tartarus-1.0.3 | lib/tartarus/notifier.rb |