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:
evazion
2020-01-12 01:30:04 -06:00
parent 1a9e4497da
commit 31e41b06ba
3 changed files with 1 additions and 30 deletions

View File

@@ -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