Sha256: 3ed10ec0d4812da3cea5322ea7fc9245b3db18a191906c497757cd29927dbb11

Contents?: true

Size: 853 Bytes

Versions: 9

Compression:

Stored size: 853 Bytes

Contents

class ApplicationMailer < ActionMailer::Base

  # => Address
  # => http://stackoverflow.com/a/8106387/1143732
  @@address = Mail::Address.new Rails.application.secrets.app[:email]
  @@address.display_name = Rails.application.secrets.app[:domain]

  # => Default
  # => http://stackoverflow.com/a/18579046/1143732
  default from:	@@address.format, template_path: "mailers"

  # Layout (app/views/layouts)
  layout "mailers/layouts/mailer"

  ##########################################################
  ##########################################################

    # For Admin "seeds" notification
    def new_user user
      @user = user
      mail to: @@address
      puts "User details sent to → #{@@address}"
    end

  ##########################################################
  ##########################################################

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fl-0.3.9 app/mailers/application_mailer.rb
fl-0.3.8 app/mailers/application_mailer.rb
fl-0.3.6 app/mailers/application_mailer.rb
fl-0.3.5 app/mailers/application_mailer.rb
fl-0.3.4 app/mailers/application_mailer.rb
fl-0.3.3 app/mailers/application_mailer.rb
fl-0.3.2 app/mailers/application_mailer.rb
fl-0.3.1 app/mailers/application_mailer.rb
fl-0.3.0 app/mailers/application_mailer.rb