Module: ActionMailer

Extended by:
ActiveSupport::Autoload
Defined in:
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/callbacks.rb,
actionmailer/lib/action_mailer/collector.rb,
actionmailer/lib/action_mailer/test_case.rb,
actionmailer/lib/action_mailer/deprecator.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/queued_delivery.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

:include: actionmailer/README.rdoc

Defined Under Namespace

Modules: Callbacks, DeliveryMethods, MailHelper, Parameterized, Previews, QueuedDelivery, 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

.deprecatorObject

:nodoc:



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

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

.eager_load!Object



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

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