Oops, fix item search crash in wardrobe

Oh right, these aren't the weird item proxy thing anymore, stop calling these methods!
This commit is contained in:
Matchu 2023-07-28 15:16:06 -07:00 committed by Matchu
parent 0b1e241158
commit dc9d82ce86

View file

@ -26,12 +26,10 @@ class ItemsController < ApplicationController
end
}
format.json {
@items.prepare_method(:as_json)
render json: {items: @items, total_pages: @items.total_pages,
query: @query.to_s}
}
format.js {
@items.prepare_method(:as_json)
render json: {items: @items, total_pages: @items.total_pages,
query: @query.to_s},
callback: params[:callback]