Module: ActionMailer

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

Overview

:nodoc:

Defined Under Namespace

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

Class Method Summary collapse

Class Method Details

.deprecatorObject

:nodoc:



4
5
6
# File 'lib/action_mailer/deprecator.rb', line 4

def self.deprecator # :nodoc:
  @deprecator ||= ActiveSupport::Deprecation.new
end

.eager_load!Object



61
62
63
64
65
66
67
68
69
70
# File 'lib/action_mailer.rb', line 61

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 '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 'lib/action_mailer/version.rb', line 8

def self.version
  gem_version
end