Sha256: 5c53a553bef5640c49d1296e67305a0b1db144c01749bb00923461850efd54e0

Contents?: true

Size: 313 Bytes

Versions: 52

Compression:

Stored size: 313 Bytes

Contents

# Load mail configuration if not in test environment
if RAILS_ENV != 'test'
  filename = "#{RAILS_ROOT}/config/email.yml"
  if File.exist? filename
    email_settings = YAML::load(File.open(filename))
    ActionMailer::Base.smtp_settings = email_settings[RAILS_ENV] unless email_settings[RAILS_ENV].nil?
  end
end

Version data entries

52 entries across 52 versions & 2 rubygems

Version Path
crystal-ext-0.0.3 lib/rails_ext/micelaneous/email_config.rb
crystal-ext-0.0.2 lib/rails_ext/micelaneous/email_config.rb
crystal-ext-0.0.1 lib/rails_ext/micelaneous/email_config.rb
rails-ext-0.3.29 lib/rails_ext/micelaneous/email_config.rb
rails-ext-0.3.28 lib/rails_ext/micelaneous/email_config.rb
rails-ext-0.3.27 lib/rails_ext/micelaneous/email_config.rb
rails-ext-0.3.25 lib/rails_ext/micelaneous/email_config.rb
rails-ext-0.3.24 lib/rails_ext/micelaneous/email_config.rb
rails-ext-0.3.23 lib/rails_ext/micelaneous/email_config.rb
rails-ext-0.3.22 lib/rails_ext/micelaneous/email_config.rb
rails-ext-0.3.21 lib/rails_ext/micelaneous/email_config.rb
rails-ext-0.3.20 lib/rails_ext/micelaneous/email_config.rb
rails-ext-0.3.19 lib/rails_ext/micelaneous/email_config.rb
rails-ext-0.3.18 lib/rails_ext/micelaneous/email_config.rb
rails-ext-0.3.17 lib/rails_ext/micelaneous/email_config.rb
rails-ext-0.3.16 lib/rails_ext/micelaneous/email_config.rb
rails-ext-0.3.15 lib/rails_ext/micelaneous/email_config.rb
rails-ext-0.3.14 lib/rails_ext/micelaneous/email_config.rb
rails-ext-0.3.13 lib/rails_ext/micelaneous/email_config.rb
rails-ext-0.3.12 lib/rails_ext/micelaneous/email_config.rb