post replacements: add "Tags" field to dialog box.

* Adds a "Tags" field to the post replacement dialog box. The given tags
  are added to the post after replacement.

* Prefills the Tags field with certain tags that usually need to be
  removed after replacement: replaceme, image_sample, jpeg_artifacts, etc.
This commit is contained in:
evazion
2017-06-26 18:17:16 -05:00
parent 8d22ab9de8
commit 9c50b24306
6 changed files with 21 additions and 11 deletions

View File

@@ -23,6 +23,6 @@ class PostReplacementsController < ApplicationController
private
def create_params
params.require(:post_replacement).permit(:replacement_url, :replacement_file, :final_source)
params.require(:post_replacement).permit(:replacement_url, :replacement_file, :final_source, :tags)
end
end