Class: FastMailer::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/fast-mailer/configuration.rb

Class Method Summary collapse

Class Method Details

.smtp_configuration(options = nil) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/fast-mailer/configuration.rb', line 6

def self.smtp_configuration(options = nil)
  if options.is_a? Hash
    options
  else
    eval(File.read(options || File.expand_path("~/.config/smtp.rb")))
  end
end