Sha256: 2598cffbda156ff8bad3210523ad56e4f51242d17e4739e845558d9e39dc9645
Contents?: true
Size: 539 Bytes
Versions: 7
Compression:
Stored size: 539 Bytes
Contents
if Rails.env.test? ActionMailer::Base.delivery_method = :test else yaml = YAML::load(IO.read(File.join(Rails.root, 'config', 'passwords.yml'))) passwords = HashWithIndifferentAccess.new(yaml[ Rails.env ]) ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :address => 'smtp.sendgrid.net', :port => '587', :domain => 'schrodingersbox.com', :authentication => :plain, :user_name => passwords[ :sendgrid ][ :user_name ], :password => passwords[ :sendgrid ][ :password ] } end
Version data entries
7 entries across 7 versions & 2 rubygems