From bd4b018e83859e14cae87ceac69bb352a76bdf22 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Wed, 4 Sep 2013 17:34:33 -0700 Subject: [PATCH] fixes #1916 --- app/controllers/pools_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/pools_controller.rb b/app/controllers/pools_controller.rb index d223905af..77e84f926 100644 --- a/app/controllers/pools_controller.rb +++ b/app/controllers/pools_controller.rb @@ -33,6 +33,7 @@ class PoolsController < ApplicationController def create @pool = Pool.create(params[:pool]) + flash[:notice] = "Pool created" respond_with(@pool) end @@ -42,6 +43,7 @@ class PoolsController < ApplicationController @pool.attributes = params[:pool] @pool.synchronize! @pool.save + flash[:notice] = "Pool updated" respond_with(@pool) end @@ -71,6 +73,7 @@ class PoolsController < ApplicationController @pool = Pool.find(params[:id]) @version = PoolVersion.find(params[:version_id]) @pool.revert_to!(@version) + flash[:notice] = "Pool reverted" respond_with(@pool) do |format| format.js end