Sha256: 9f0f03bac2f41c8b94afd302ed3bfc1c7f6465be45a4f65c3dea30f21e421193

Contents?: true

Size: 646 Bytes

Versions: 3

Compression:

Stored size: 646 Bytes

Contents

begin
  require 'active_support'
  require 'action_mailer'
  require 'action_mailer/version'

rescue LoadError
  # ActionMailer not available
end

if (defined?(ActionMailer))
  # Loading PostageApp::Mailer class depending on what action_mailer is
  # currently installed on the system. Assuming we're dealing only with
  # ones that come with Rails 2 and 3
  case (ActionMailer::VERSION::MAJOR)
  when 3
    require File.expand_path('mailer/mailer_3', File.dirname(__FILE__))
  when 2
    require File.expand_path('mailer/mailer_2', File.dirname(__FILE__))
  else
    require File.expand_path('mailer/mailer_4', File.dirname(__FILE__))
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
postageapp-1.3.1 lib/postageapp/mailer.rb
postageapp-1.3.0 lib/postageapp/mailer.rb
postageapp-1.2.6 lib/postageapp/mailer.rb