class ActionMailer::EmailBoilerplate::Mailer

Public Instance Methods

default_recipient() click to toggle source
# File lib/email_boilerplate/action_mailer/mailer.rb, line 13
def default_recipient
  config.email_to_address
end
default_sender(email=nil) click to toggle source
# File lib/email_boilerplate/action_mailer/mailer.rb, line 8
def default_sender(email=nil)
  from = config.email_from_address
  "#{email || from} <#{from}>"
end
mail(locale, opts) click to toggle source
Calls superclass method
# File lib/email_boilerplate/action_mailer/mailer.rb, line 17
def mail(locale, opts)
  ActionMailer::Base.default_url_options[:locale] = locale

  I18n.with_locale(locale) do   
    super opts
  end
end

Private Instance Methods

config() click to toggle source
# File lib/email_boilerplate/action_mailer/mailer.rb, line 27
def config
  @config ||= Rails.application.config
end