レイアウト付きの project_mailer がありますが、 project_notification メソッドにそのパラメーターがある場合は、別のメソッドを使用したいと考えていますunsubscribe_link = true
。
layout "project_mail"
def project_notification(user, projects, unsubsribe_link = false)
attachments.inline['logo_252.png'] = File.read(Rails.root + 'public/images/logo_252.png')
@user = user
@projects = projects
mail(:to => user.email, :subject => "New Projects")
end