5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 11:41:41 +00:00
panel/app/mailers/application_mailer.rb
2020-05-30 16:43:25 -03:00

20 lines
392 B
Ruby

# frozen_string_literal: true
# Configuración base del correo
class ApplicationMailer < ActionMailer::Base
helper :application
before_action :inline_logo!
layout 'mailer'
private
def site
@site ||= Site.find @params[:site_id]
end
def inline_logo!
attachments.inline['logo.png'] ||=
File.read(Rails.root.join('app', 'assets', 'images', 'logo.png'))
end
end