Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #9985: content_type.diff

File content_type.diff, 0.6 kB (added by mtillman, 1 year ago)

Content Type for ExceptionNotifier.rb

  • vendor/plugins/exception_notification/lib/exception_notifier.rb

    old new  
    3636  def self.reloadable?; false; end 
    3737 
    3838  def exception_notification(exception, controller, request, data={}) 
     39    content_type "text/plain"  
    3940    subject    "#{email_prefix}#{controller.controller_name}##{controller.action_name} (#{exception.class}) #{exception.message.inspect}" 
    4041 
    4142    recipients exception_recipients