Commit 44fe2549f3f8fab2027c5538ff23b53648cf77e0
1 parent
30214792
Exists in
master
and in
27 other branches
rails3: fix invitation deliver call
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/invitation.rb
| @@ -24,7 +24,7 @@ class Invitation < Task | @@ -24,7 +24,7 @@ class Invitation < Task | ||
| 24 | end | 24 | end |
| 25 | 25 | ||
| 26 | after_create do |task| | 26 | after_create do |task| |
| 27 | - TaskMailer.deliver_invitation_notification(task) unless task.friend | 27 | + TaskMailer.invitation_notification(task).deliver unless task.friend |
| 28 | end | 28 | end |
| 29 | 29 | ||
| 30 | def title | 30 | def title |