From e5152c3931c8f0766b2201053427b398e3b13bde Mon Sep 17 00:00:00 2001 From: Herve Saint-Amand Date: Mon, 16 Jan 2017 21:21:55 +0000 Subject: [PATCH] Move attach_project_logo to be its own before_action filter, as suggested --- app/models/notifier.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/notifier.rb b/app/models/notifier.rb index 8e386edf84..0ed7071ac7 100644 --- a/app/models/notifier.rb +++ b/app/models/notifier.rb @@ -4,6 +4,7 @@ class Notifier < ActionMailer::Base :auto_submitted => "auto-generated" helper :application before_action :set_shared_template_vars + before_action :attach_project_logo def signup_confirm(user, token) with_recipient_locale user do @@ -191,7 +192,6 @@ def changeset_comment_notification(comment, recipient) def set_shared_template_vars @root_url = root_url(:host => SERVER_URL) - attach_project_logo end def attach_project_logo