123456789_123456789_123456789_123456789_123456789_

Module: ActionMailer

Overview

Class Method Summary

  • .eager_load!
  • .gem_version

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

  • .version

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

::ActiveSupport::Autoload - Extended

Class Method Details

.eager_load!

[ GitHub ]

  
# File 'actionmailer/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_version

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

[ GitHub ]

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

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

.version

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

[ GitHub ]

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

def self.version
  gem_version
end