From 387f2136dcbc03cb2575523355745b341abffd02 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Tue, 26 Nov 2013 21:25:05 +0400 Subject: [PATCH] #328: add project name into subject --- app/mailers/user_mailer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index 07d4d6630..dcdcfc3e4 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -83,7 +83,7 @@ class UserMailer < ActionMailer::Base set_locale user mail( :to => user.email, - :subject => I18n.t('notifications.subjects.new_commit') + :subject => I18n.t('notifications.subjects.new_commit', :project_name => "#{options[:project_owner]}/#{options[:project_name]}") ) do |format| format.html { render 'git_delete_branch_notification', :locals => options } end @@ -93,7 +93,7 @@ class UserMailer < ActionMailer::Base set_locale user mail( :to => user.email, - :subject => I18n.t('notifications.subjects.new_commit') + :subject => I18n.t('notifications.subjects.new_commit', :project_name => "#{options[:project_owner]}/#{options[:project_name]}") ) do |format| format.html { render 'git_new_push_notification', :locals => options } end