Fix #5184: undefined method `to_model' for []:Array searching for IQDB queries with JSON.
This commit is contained in:
@@ -9,7 +9,7 @@ class IqdbQueriesController < ApplicationController
|
||||
|
||||
iqdb_params = search_params.to_h.symbolize_keys
|
||||
@high_similarity_matches, @low_similarity_matches, @matches = IqdbClient.new.search(**iqdb_params)
|
||||
respond_with(@matches, template: "iqdb_queries/show")
|
||||
respond_with(@matches, template: "iqdb_queries/show", location: iqdb_queries_path)
|
||||
end
|
||||
|
||||
alias create show
|
||||
|
||||
Reference in New Issue
Block a user