summaryrefslogtreecommitdiff
path: root/app/mailers/notify.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-11 21:17:28 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-11 21:17:28 +0300
commit73446fe15e35c6e9d077b071bec7f06f64a1b6b9 (patch)
tree06c170da234b166c7d8286709603e29588d878b4 /app/mailers/notify.rb
parentfc6ed495487084b051d7228fdafe814784ea3ea0 (diff)
downloadgitlab-ce-73446fe15e35c6e9d077b071bec7f06f64a1b6b9.tar.gz
Email templates when user was added to group
Diffstat (limited to 'app/mailers/notify.rb')
-rw-r--r--app/mailers/notify.rb14
1 files changed, 2 insertions, 12 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb
index 7890ca7793b..2f7be00c33e 100644
--- a/app/mailers/notify.rb
+++ b/app/mailers/notify.rb
@@ -3,6 +3,8 @@ class Notify < ActionMailer::Base
include Emails::MergeRequests
include Emails::Notes
include Emails::Projects
+ include Emails::Profile
+ include Emails::Groups
add_template_helper ApplicationHelper
add_template_helper GitlabMarkdownHelper
@@ -20,18 +22,6 @@ class Notify < ActionMailer::Base
delay_for(2.seconds)
end
- def new_user_email(user_id, password)
- @user = User.find(user_id)
- @password = password
- mail(to: @user.email, subject: subject("Account was created for you"))
- end
-
- def new_ssh_key_email(key_id)
- @key = Key.find(key_id)
- @user = @key.user
- mail(to: @user.email, subject: subject("SSH key was added to your account"))
- end
-
private
# Look up a User by their ID and return their email address