From ab57c4fa09330e41b821a51f1d150cddfb3fa45b Mon Sep 17 00:00:00 2001 From: Toks Date: Thu, 11 Jul 2013 21:14:18 -0400 Subject: [PATCH] fixes #1713 --- app/controllers/pools_controller.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/controllers/pools_controller.rb b/app/controllers/pools_controller.rb index 52e987e8b..224c49e0e 100644 --- a/app/controllers/pools_controller.rb +++ b/app/controllers/pools_controller.rb @@ -33,7 +33,7 @@ class PoolsController < ApplicationController def create @pool = Pool.create(params[:pool]) - respond_with(@pool, :notice => "Pool created") + respond_with(@pool) end def update @@ -42,7 +42,7 @@ class PoolsController < ApplicationController @pool.attributes = params[:pool] @pool.synchronize! @pool.save - respond_with(@pool, :notice => "Pool updated") + respond_with(@pool) end def destroy @@ -52,7 +52,8 @@ class PoolsController < ApplicationController end @pool.update_attribute(:is_deleted, true) @pool.create_mod_action_for_delete - respond_with(@pool, :notice => "Pool deleted") + flash[:notice] = "Pool deleted" + respond_with(@pool) end def undelete @@ -62,7 +63,8 @@ class PoolsController < ApplicationController end @pool.update_attribute(:is_deleted, false) @pool.create_mod_action_for_undelete - respond_with(@pool, :notice => "Pool undeleted") + flash[:notice] = "Pool undeleted" + respond_with(@pool) end def revert