summaryrefslogtreecommitdiffstats
path: root/config/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/40-email.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/config/initializers/40-email.rb b/config/initializers/40-email.rb
deleted file mode 100644
index 5b388ec59..000000000
--- a/config/initializers/40-email.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-# Loads action_mailer settings from email.yml
-# and turns deliveries on if configuration file is found
-
-filename = File.join(File.dirname(__FILE__), '..', 'email.yml')
-if File.file?(filename)
- mailconfig = YAML::load_file(filename)
-
- if mailconfig.is_a?(Hash) && mailconfig.has_key?(Rails.env)
- # Enable deliveries
- ActionMailer::Base.perform_deliveries = true
-
- mailconfig[Rails.env].each do |k, v|
- v.symbolize_keys! if v.respond_to?(:symbolize_keys!)
- ActionMailer::Base.send("#{k}=", v)
- end
- end
-end