summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2011-08-20 16:48:33 +0200
committerAlex Legler <alex@a3li.li>2011-08-20 16:48:33 +0200
commit893c9f7af1b9e75a9262321752f29ae4cb510c26 (patch)
tree4839a97368a05f7df2ed07861d66fa8ef7da68bf /lib
parentMigrate CVEController to rails3 (diff)
downloadglsamaker-893c9f7af1b9e75a9262321752f29ae4cb510c26.tar.gz
glsamaker-893c9f7af1b9e75a9262321752f29ae4cb510c26.tar.bz2
glsamaker-893c9f7af1b9e75a9262321752f29ae4cb510c26.zip
Migrate GLSAMailer to rails3
Diffstat (limited to 'lib')
-rw-r--r--lib/glsamaker/mail.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/glsamaker/mail.rb b/lib/glsamaker/mail.rb
index d3ab36b..dca02a2 100644
--- a/lib/glsamaker/mail.rb
+++ b/lib/glsamaker/mail.rb
@@ -1,5 +1,5 @@
# ===GLSAMaker v2
-# Copyright (C) 2010 Alex Legler <a3li@gentoo.org>
+# Copyright (C) 2010-11 Alex Legler <a3li@gentoo.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
@@ -21,7 +21,7 @@ module Glsamaker
next unless rcpt.can_access? glsa
unless rcpt.get_pref_category(:mail)[:edit] == false
- GlsaMailer.deliver_edit(rcpt, glsa, diff, user)
+ GlsaMailer.edit(rcpt, glsa, diff, user).deliver
end
end
end
@@ -36,7 +36,7 @@ module Glsamaker
next unless rcpt.can_access? glsa
unless rcpt.get_pref_category(:mail)[:request] == false
- GlsaMailer.deliver_request(rcpt, glsa, user)
+ GlsaMailer.new_request(rcpt, glsa, user).deliver
end
end
end
@@ -52,7 +52,7 @@ module Glsamaker
return if rcpt == user
unless rcpt.get_pref_category(:mail)[:comment] == false
- GlsaMailer.deliver_comment(rcpt, glsa, comment, user)
+ GlsaMailer.comment(rcpt, glsa, comment, user).deliver
end
end
@@ -66,7 +66,7 @@ module Glsamaker
return unless rcpt.can_access? glsa
unless rcpt.get_pref_category(:mail)[:comment] == false
- GlsaMailer.deliver_approval(rcpt, glsa)
+ GlsaMailer.approval(rcpt, glsa).deliver
end
end