fixes #1916
This commit is contained in:
@@ -33,6 +33,7 @@ class PoolsController < ApplicationController
|
|||||||
|
|
||||||
def create
|
def create
|
||||||
@pool = Pool.create(params[:pool])
|
@pool = Pool.create(params[:pool])
|
||||||
|
flash[:notice] = "Pool created"
|
||||||
respond_with(@pool)
|
respond_with(@pool)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -42,6 +43,7 @@ class PoolsController < ApplicationController
|
|||||||
@pool.attributes = params[:pool]
|
@pool.attributes = params[:pool]
|
||||||
@pool.synchronize!
|
@pool.synchronize!
|
||||||
@pool.save
|
@pool.save
|
||||||
|
flash[:notice] = "Pool updated"
|
||||||
respond_with(@pool)
|
respond_with(@pool)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -71,6 +73,7 @@ class PoolsController < ApplicationController
|
|||||||
@pool = Pool.find(params[:id])
|
@pool = Pool.find(params[:id])
|
||||||
@version = PoolVersion.find(params[:version_id])
|
@version = PoolVersion.find(params[:version_id])
|
||||||
@pool.revert_to!(@version)
|
@pool.revert_to!(@version)
|
||||||
|
flash[:notice] = "Pool reverted"
|
||||||
respond_with(@pool) do |format|
|
respond_with(@pool) do |format|
|
||||||
format.js
|
format.js
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user