Skip to content

Commit

Permalink
Move attach_project_logo to be its own before_action filter, as sugge…
Browse files Browse the repository at this point in the history
…sted
  • Loading branch information
saintamh committed Jan 16, 2017
1 parent 1e19e80 commit e5152c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/notifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e5152c3

Please sign in to comment.