Sha256: 9cb9e916092314d797a525da5824485ced78f6f60612a974215dc1af203cfc4f

Contents?: true

Size: 582 Bytes

Versions: 39

Compression:

Stored size: 582 Bytes

Contents

# frozen_string_literal: true

module Alchemy
  begin
    base_class = Object.const_get('::ApplicationMailer')
  rescue NameError
    base_class = ActionMailer::Base
  end

  # The +BaseMailer+ is the class all Alchemy mailers inherit from.
  #
  # Itself inherits from +ApplicationMailer+ when it is defined, or
  # as a fallback from +ActionMailer::Base+.
  #
  # +ApplicationMailer+ is the Rails standard for registering helpers and
  # setting the default layout. It is only generated though, when you
  # +rails generate+ a mailer.
  #
  class BaseMailer < base_class; end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
alchemy_cms-4.6.7 app/mailers/alchemy/base_mailer.rb
alchemy_cms-4.6.6 app/mailers/alchemy/base_mailer.rb
alchemy_cms-4.6.5 app/mailers/alchemy/base_mailer.rb
alchemy_cms-4.5.1 app/mailers/alchemy/base_mailer.rb
alchemy_cms-4.4.5 app/mailers/alchemy/base_mailer.rb
alchemy_cms-4.6.4 app/mailers/alchemy/base_mailer.rb
alchemy_cms-4.0.6 app/mailers/alchemy/base_mailer.rb
alchemy_cms-4.6.3 app/mailers/alchemy/base_mailer.rb
alchemy_cms-4.6.2 app/mailers/alchemy/base_mailer.rb
alchemy_cms-4.6.1 app/mailers/alchemy/base_mailer.rb
alchemy_cms-4.6.0 app/mailers/alchemy/base_mailer.rb
alchemy_cms-4.5.0 app/mailers/alchemy/base_mailer.rb
alchemy_cms-4.4.4 app/mailers/alchemy/base_mailer.rb
alchemy_cms-4.4.3 app/mailers/alchemy/base_mailer.rb
alchemy_cms-4.4.2 app/mailers/alchemy/base_mailer.rb
alchemy_cms-4.4.1 app/mailers/alchemy/base_mailer.rb
alchemy_cms-4.4.0 app/mailers/alchemy/base_mailer.rb
alchemy_cms-4.3.2 app/mailers/alchemy/base_mailer.rb
alchemy_cms-4.2.4 app/mailers/alchemy/base_mailer.rb
alchemy_cms-4.3.1 app/mailers/alchemy/base_mailer.rb