Commit 8a878a191ca6879ae954f11ce0e4eda30996b8df
- Date: Sun Jan 06 00:45:02 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: 8a878a191ca6879ae954f11ce0e4eda30996b8df
- Tree SHA1: c28c84be934d0f36b258380fac4cd3911fff920d
configure exception notification emails properly
Commit diff
| |   |
| 51 | 51 | config.active_record.default_timezone = :utc |
| 52 | 52 | |
| 53 | 53 | # See Rails::Configuration for more options |
| 54 | | |
| 55 | | GitoriousConfig = YAML::load_file(File.join(RAILS_ROOT, "config/gitorious.yml")) |
| 56 | 54 | |
| 57 | 55 | # Application configuration should go into files in config/initializers |
| 58 | 56 | # -- all .rb files in that directory are automatically loaded |
| toggle raw diff |
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -51,8 +51,6 @@ Rails::Initializer.run do |config|
config.active_record.default_timezone = :utc
# See Rails::Configuration for more options
-
- GitoriousConfig = YAML::load_file(File.join(RAILS_ROOT, "config/gitorious.yml"))
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded |
| |   |
| 17 | 17 | # Don't care if the mailer can't send |
| 18 | 18 | config.action_mailer.raise_delivery_errors = false |
| 19 | 19 | config.action_mailer.delivery_method = :test |
| 20 | ExceptionNotifier.exception_recipients = YAML.load_file(File.join(RAILS_ROOT, |
| 21 | "config/gitorious.yml"))["exception_notification_emails"] |
| toggle raw diff |
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -17,3 +17,5 @@ config.action_view.debug_rjs = true
# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = false
config.action_mailer.delivery_method = :test
+ExceptionNotifier.exception_recipients = YAML.load_file(File.join(RAILS_ROOT,
+ "config/gitorious.yml"))["exception_notification_emails"]
\ No newline at end of file |
| |   |
| 20 | 20 | # Disable delivery errors, bad email addresses will be ignored |
| 21 | 21 | # config.action_mailer.raise_delivery_errors = false |
| 22 | 22 | |
| 23 | | ExceptionNotifier.exception_recipients = GitoriousConfig["exception_notification_emails"] |
| 23 | ExceptionNotifier.exception_recipients = YAML.load_file(File.join(RAILS_ROOT, |
| 24 | "config/gitorious.yml"))["exception_notification_emails"] |
| toggle raw diff |
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -20,4 +20,5 @@ config.action_controller.perform_caching = true
# Disable delivery errors, bad email addresses will be ignored
# config.action_mailer.raise_delivery_errors = false
-ExceptionNotifier.exception_recipients = GitoriousConfig["exception_notification_emails"]
+ExceptionNotifier.exception_recipients = YAML.load_file(File.join(RAILS_ROOT,
+ "config/gitorious.yml"))["exception_notification_emails"] |
| |   |
| 1 | GitoriousConfig = YAML::load_file(File.join(RAILS_ROOT, "config/gitorious.yml")) |
| toggle raw diff |
--- /dev/null
+++ b/config/initializers/gitorious_config.rb
@@ -0,0 +1 @@
+GitoriousConfig = YAML::load_file(File.join(RAILS_ROOT, "config/gitorious.yml"))
\ No newline at end of file |