Sha256: 849e014d7740b7f2b31da7a165a1fa1aeb8bd7a70fcdc0b0446496239df7e4dc
Contents?: true
Size: 371 Bytes
Versions: 15
Compression:
Stored size: 371 Bytes
Contents
# http://www.mikeperham.com/2012/12/09/12-gems-of-christmas-4-mailcatcher-and-mail_view/ mailcatcher_port = 1025 begin sock = TCPSocket.new('localhost', mailcatcher_port) sock.close mailcatcher = true rescue mailcatcher = false end if Rails.env.development? && mailcatcher ActionMailer::Base.smtp_settings = { host: 'localhost', port: mailcatcher_port } end
Version data entries
15 entries across 8 versions & 1 rubygems