Sha256: 48783eada4ca696cef73e6b890fff12a3563bdc9db5939a61a0c0f451643affa
Contents?: true
Size: 547 Bytes
Versions: 6
Compression:
Stored size: 547 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
6 entries across 6 versions & 2 rubygems