summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-07-25 21:38:33 +0300
committerrandx <dmitriy.zaporozhets@gmail.com>2012-07-25 21:38:33 +0300
commit0296121f08cd960f5a96686b3bedd75f5651765a (patch)
tree661f390320c4d778b8eda766739d611b18a4db67
parent61c85332d2ab8545323a897724439526297c8899 (diff)
downloadgitlab-ce-0296121f08cd960f5a96686b3bedd75f5651765a.tar.gz
Remove recreated mailer controller for admin
-rw-r--r--app/controllers/admin/mailer_controller.rb47
1 files changed, 0 insertions, 47 deletions
diff --git a/app/controllers/admin/mailer_controller.rb b/app/controllers/admin/mailer_controller.rb
deleted file mode 100644
index ec6d24bdaba..00000000000
--- a/app/controllers/admin/mailer_controller.rb
+++ /dev/null
@@ -1,47 +0,0 @@
-class Admin::MailerController < ApplicationController
- layout "admin"
- before_filter :authenticate_user!
- before_filter :authenticate_admin!
-
- def preview
-
- end
-
- def preview_note
- @note = Note.first
- @user = @note.author
- @project = @note.project
- case params[:type]
- when "Commit" then
- @commit = @project.commit
- render :file => 'notify/note_commit_email', :layout => 'notify'
- when "Issue" then
- @issue = Issue.first
- render :file => 'notify/note_issue_email', :layout => 'notify'
- when "Wiki" then
- render :file => 'notify/note_wiki_email', :layout => 'notify'
- else
- render :file => 'notify/note_wall_email', :layout => 'notify'
- end
- rescue
- render :text => "Preview not available"
- end
-
- def preview_user_new
- @user = User.first
- @password = "DHasJKDHAS!"
-
- render :file => 'notify/new_user_email', :layout => 'notify'
- rescue
- render :text => "Preview not available"
- end
-
- def preview_issue_new
- @issue = Issue.first
- @user = @issue.assignee
- @project = @issue.project
- render :file => 'notify/new_issue_email', :layout => 'notify'
- rescue
- render :text => "Preview not available"
- end
-end