From 24511e5cfee0542cfa7cdf6c5b41e2d8584ca07b Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 28 Jul 2023 15:16:06 -0700 Subject: [PATCH] Oops, fix item search crash in wardrobe Oh right, these aren't the weird item proxy thing anymore, stop calling these methods! --- app/controllers/items_controller.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/controllers/items_controller.rb b/app/controllers/items_controller.rb index f3924c53..e44e3065 100644 --- a/app/controllers/items_controller.rb +++ b/app/controllers/items_controller.rb @@ -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]