Commit 7c776109 authored by Nihad Abbasov's avatar Nihad Abbasov

fix deprecation warnings

parent 058d80b3
...@@ -14,12 +14,12 @@ class Admin::MailerController < ApplicationController ...@@ -14,12 +14,12 @@ class Admin::MailerController < ApplicationController
case params[:type] case params[:type]
when "Commit" then when "Commit" then
@commit = @project.commit @commit = @project.commit
render :file => 'notify/note_commit_email.html.haml', :layout => 'notify' render :file => 'notify/note_commit_email', :layout => 'notify'
when "Issue" then when "Issue" then
@issue = Issue.first @issue = Issue.first
render :file => 'notify/note_issue_email.html.haml', :layout => 'notify' render :file => 'notify/note_issue_email', :layout => 'notify'
else else
render :file => 'notify/note_wall_email.html.haml', :layout => 'notify' render :file => 'notify/note_wall_email', :layout => 'notify'
end end
rescue rescue
render :text => "Preview not avaialble" render :text => "Preview not avaialble"
...@@ -29,7 +29,7 @@ class Admin::MailerController < ApplicationController ...@@ -29,7 +29,7 @@ class Admin::MailerController < ApplicationController
@user = User.first @user = User.first
@password = "DHasJKDHAS!" @password = "DHasJKDHAS!"
render :file => 'notify/new_user_email.html.haml', :layout => 'notify' render :file => 'notify/new_user_email', :layout => 'notify'
rescue rescue
render :text => "Preview not avaialble" render :text => "Preview not avaialble"
end end
...@@ -38,7 +38,7 @@ class Admin::MailerController < ApplicationController ...@@ -38,7 +38,7 @@ class Admin::MailerController < ApplicationController
@issue = Issue.first @issue = Issue.first
@user = @issue.assignee @user = @issue.assignee
@project = @issue.project @project = @issue.project
render :file => 'notify/new_issue_email.html.haml', :layout => 'notify' render :file => 'notify/new_issue_email', :layout => 'notify'
rescue rescue
render :text => "Preview not avaialble" render :text => "Preview not avaialble"
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment