pools: remove pool element destroy action.
This endpoint was for removing a single post from a pool. This wasn't used anywhere within Danbooru.
This commit is contained in:
@@ -12,11 +12,4 @@ class PoolElementsController < ApplicationController
|
||||
@error = "That pool does not exist"
|
||||
end
|
||||
end
|
||||
|
||||
def destroy
|
||||
@pool = Pool.find(params[:pool_id])
|
||||
@post = Post.find(params[:post_id])
|
||||
@pool.remove!(@post)
|
||||
respond_with(@pool, :location => post_path(@post))
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user