From 8b3e4fc9e2d446b5d82f0e43e851999c8089e20f Mon Sep 17 00:00:00 2001 From: Evandro Junior Date: Mon, 19 May 2014 21:26:33 +0000 Subject: [PATCH] trying to fix a test --- plugins/email_article/controllers/email_article_plugin_myprofile_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/email_article/controllers/email_article_plugin_myprofile_controller.rb b/plugins/email_article/controllers/email_article_plugin_myprofile_controller.rb index 55b5fcd..0929d83 100644 --- a/plugins/email_article/controllers/email_article_plugin_myprofile_controller.rb +++ b/plugins/email_article/controllers/email_article_plugin_myprofile_controller.rb @@ -6,7 +6,9 @@ class EmailArticlePluginMyprofileController < MyProfileController if user.is_admin?(profile) article = Article.find(params[:id]) EmailArticlePluginMyprofileController::Sender.deliver_mail(article) - render :text=>'ok' + render :action => 'success' + else + render :action => 'fail' end end -- libgit2 0.21.2