From 4bf9d21491b161275deeed0625d27245f11bb1e8 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 --- controllers/email_article_plugin_myprofile_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/email_article_plugin_myprofile_controller.rb b/controllers/email_article_plugin_myprofile_controller.rb index 55b5fcd..0929d83 100644 --- a/controllers/email_article_plugin_myprofile_controller.rb +++ b/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