Class: SesProxyRails::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/ses-proxy-rails.rb

Class Method Summary collapse

Class Method Details

.get_application_nameObject



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/ses-proxy-rails.rb', line 10

def self.get_application_name
  if application_name
    return application_name.to_s
  else
    if ActionMailer::VERSION::MAJOR < 3
      #This is the unique way to get the Application Name in Rails 2
      return File.basename(Rails.root.to_s)
    else
      return Rails.application.class.parent.to_s
    end
  end
end

.get_replacement_addressObject



23
24
25
26
27
28
29
30
31
# File 'lib/ses-proxy-rails.rb', line 23

def self.get_replacement_address
  if replacement_address
    return replacement_address.to_s
  elsif developer_email_address
    return developer_email_address
  else
    nil
  end
end