rubocop: fix various style issues.

This commit is contained in:
evazion
2019-12-22 16:21:58 -06:00
parent 09f6a84660
commit 309821bf73
288 changed files with 912 additions and 962 deletions

View File

@@ -23,13 +23,14 @@ class PostReplacementsController < ApplicationController
end
def index
params[:search][:post_id] = params.delete(:post_id) if params.has_key?(:post_id)
params[:search][:post_id] = params.delete(:post_id) if params.key?(:post_id)
@post_replacements = PostReplacement.paginated_search(params)
respond_with(@post_replacements)
end
private
private
def create_params
params.require(:post_replacement).permit(:replacement_url, :replacement_file, :final_source, :tags)
end