Commit 75ef17f60e5f7dcd6aebec177c9a4556dcfeaea9
- Date: Tue Mar 18 16:43:26 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: 75ef17f60e5f7dcd6aebec177c9a4556dcfeaea9
- Tree SHA1: 5569a2f6126b064204bc2d731f38806c23281506
fix for exception notifier templates
Commit diff
| |   |
| 28 | 28 | |
| 29 | 29 | ExceptionNotifier.exception_recipients = YAML.load_file(File.join(RAILS_ROOT, |
| 30 | 30 | "config/gitorious.yml"))["exception_notification_emails"] |
| 31 | ExceptionNotifier.class_eval do |
| 32 | remove_method :template_root |
| 33 | ExceptionNotifier.template_root = "#{RAILS_ROOT}/vendor/plugins/exception_notification/lib/../views" |
| 34 | end |
| toggle raw diff |
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -28,3 +28,7 @@ config.action_controller.fragment_cache_store = :file_store, File.join(cache_dir
ExceptionNotifier.exception_recipients = YAML.load_file(File.join(RAILS_ROOT,
"config/gitorious.yml"))["exception_notification_emails"]
+ExceptionNotifier.class_eval do
+ remove_method :template_root
+ ExceptionNotifier.template_root = "#{RAILS_ROOT}/vendor/plugins/exception_notification/lib/../views"
+end
\ No newline at end of file |