Commit 7c7761099cae83f59fe5780340e100be890847b2
1 parent
058d80b3
Exists in
master
and in
4 other branches
fix deprecation warnings
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
app/controllers/admin/mailer_controller.rb
... | ... | @@ -14,12 +14,12 @@ class Admin::MailerController < ApplicationController |
14 | 14 | case params[:type] |
15 | 15 | when "Commit" then |
16 | 16 | @commit = @project.commit |
17 | - render :file => 'notify/note_commit_email.html.haml', :layout => 'notify' | |
17 | + render :file => 'notify/note_commit_email', :layout => 'notify' | |
18 | 18 | when "Issue" then |
19 | 19 | @issue = Issue.first |
20 | - render :file => 'notify/note_issue_email.html.haml', :layout => 'notify' | |
20 | + render :file => 'notify/note_issue_email', :layout => 'notify' | |
21 | 21 | else |
22 | - render :file => 'notify/note_wall_email.html.haml', :layout => 'notify' | |
22 | + render :file => 'notify/note_wall_email', :layout => 'notify' | |
23 | 23 | end |
24 | 24 | rescue |
25 | 25 | render :text => "Preview not avaialble" |
... | ... | @@ -29,7 +29,7 @@ class Admin::MailerController < ApplicationController |
29 | 29 | @user = User.first |
30 | 30 | @password = "DHasJKDHAS!" |
31 | 31 | |
32 | - render :file => 'notify/new_user_email.html.haml', :layout => 'notify' | |
32 | + render :file => 'notify/new_user_email', :layout => 'notify' | |
33 | 33 | rescue |
34 | 34 | render :text => "Preview not avaialble" |
35 | 35 | end |
... | ... | @@ -38,7 +38,7 @@ class Admin::MailerController < ApplicationController |
38 | 38 | @issue = Issue.first |
39 | 39 | @user = @issue.assignee |
40 | 40 | @project = @issue.project |
41 | - render :file => 'notify/new_issue_email.html.haml', :layout => 'notify' | |
41 | + render :file => 'notify/new_issue_email', :layout => 'notify' | |
42 | 42 | rescue |
43 | 43 | render :text => "Preview not avaialble" |
44 | 44 | end | ... | ... |