views: migrate related tags, mass edits to simple form.

This commit is contained in:
evazion
2019-09-10 21:51:14 -05:00
parent 896f144eb6
commit a5043245b6
4 changed files with 21 additions and 46 deletions

View File

@@ -2,7 +2,10 @@ class RelatedTagsController < ApplicationController
respond_to :json, :xml, :js, :html
def show
@query = RelatedTagQuery.new(query: params[:query], category: params[:category], user: CurrentUser.user)
query = params[:query] || search_params[:query]
category = params[:category] || search_params[:category]
@query = RelatedTagQuery.new(query: query, category: category, user: CurrentUser.user)
respond_with(@query)
end
end