From: Herve Saint-Amand Date: Mon, 16 Jan 2017 21:21:55 +0000 (+0000) Subject: Move attach_project_logo to be its own before_action filter, as suggested X-Git-Tag: live~3640^2~10 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/e5152c3931c8f0766b2201053427b398e3b13bde Move attach_project_logo to be its own before_action filter, as suggested --- diff --git a/app/models/notifier.rb b/app/models/notifier.rb index 8e386edf8..0ed7071ac 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 @@ class Notifier < ActionMailer::Base def set_shared_template_vars @root_url = root_url(:host => SERVER_URL) - attach_project_logo end def attach_project_logo