5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 15:56:20 +00:00
panel/app/mailers/application_mailer.rb
2019-10-14 12:31:38 -03:00

17 lines
400 B
Ruby

# frozen_string_literal: true
# Configuración base del correo
class ApplicationMailer < ActionMailer::Base
helper :application
before_action :inline_logo!
default from: ENV.fetch('DEFAULT_FROM', "noreply@#{Site.domain}")
layout 'mailer'
private
def inline_logo!
attachments.inline['logo.png'] ||=
File.read(Rails.root.join('app', 'assets', 'images', 'logo.png'))
end
end