Mercurial > hg > soundsoftware-site
view config/initializers/40-email.rb @ 107:361f1e8b2e23 luisf
Feature #1:
Fixed the collection_select variable issue
User edit view: removed wiki toolbar and description from the description text area in the user;
User edit view: added institutions collection select;
User show view: institution name now visible.
Users_controller: fixed a bug retrieving the institution name
author | luisf |
---|---|
date | Fri, 17 Dec 2010 11:18:51 +0000 |
parents | 513646585e45 |
children |
line wrap: on
line source
# 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