Module: ActionMailer

Extended by:
ActiveSupport::Autoload
Defined in:
actionmailer/lib/action_mailer/rescuable.rb,
actionmailer/lib/action_mailer.rb,
actionmailer/lib/action_mailer/base.rb,
actionmailer/lib/action_mailer/preview.rb,
actionmailer/lib/action_mailer/railtie.rb,
actionmailer/lib/action_mailer/version.rb,
actionmailer/lib/action_mailer/collector.rb,
actionmailer/lib/action_mailer/test_case.rb,
actionmailer/lib/action_mailer/gem_version.rb,
actionmailer/lib/action_mailer/mail_helper.rb,
actionmailer/lib/action_mailer/test_helper.rb,
actionmailer/lib/action_mailer/parameterized.rb,
actionmailer/lib/action_mailer/log_subscriber.rb,
actionmailer/lib/action_mailer/delivery_methods.rb,
actionmailer/lib/action_mailer/message_delivery.rb,
actionmailer/lib/action_mailer/mail_delivery_job.rb,
actionmailer/lib/action_mailer/inline_preview_interceptor.rb

Overview

:nodoc:

Defined Under Namespace

Modules: DeliveryMethods, MailHelper, Parameterized, Previews, Rescuable, TestHelper, VERSION Classes: Base, Collector, InlinePreviewInterceptor, LogSubscriber, MailDeliveryJob, MessageDelivery, NonInferrableMailerError, Preview, Railtie, TestCase

Class Method Summary collapse

Methods included from ActiveSupport::Autoload

autoload, autoload_at, autoload_under, eager_autoload, eager_load!, extended

Class Method Details

.eager_load!Object


56
57
58
59
60
61
62
63
64
65
# File 'actionmailer/lib/action_mailer.rb', line 56

def self.eager_load!
  super

  require "mail"
  Mail.eager_autoload!

  Base.descendants.each do |mailer|
    mailer.eager_load! unless mailer.abstract?
  end
end

.gem_versionObject

Returns the currently loaded version of Action Mailer as a Gem::Version.


5
6
7
# File 'actionmailer/lib/action_mailer/gem_version.rb', line 5

def self.gem_version
  Gem::Version.new VERSION::STRING
end

.versionObject

Returns the currently loaded version of Action Mailer as a Gem::Version.


8
9
10
# File 'actionmailer/lib/action_mailer/version.rb', line 8

def self.version
  gem_version
end