forked from OpenNeo/impress
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:
parent
0b1e241158
commit
dc9d82ce86
1 changed files with 0 additions and 2 deletions
|
@ -26,12 +26,10 @@ class ItemsController < ApplicationController
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
format.json {
|
format.json {
|
||||||
@items.prepare_method(:as_json)
|
|
||||||
render json: {items: @items, total_pages: @items.total_pages,
|
render json: {items: @items, total_pages: @items.total_pages,
|
||||||
query: @query.to_s}
|
query: @query.to_s}
|
||||||
}
|
}
|
||||||
format.js {
|
format.js {
|
||||||
@items.prepare_method(:as_json)
|
|
||||||
render json: {items: @items, total_pages: @items.total_pages,
|
render json: {items: @items, total_pages: @items.total_pages,
|
||||||
query: @query.to_s},
|
query: @query.to_s},
|
||||||
callback: params[:callback]
|
callback: params[:callback]
|
||||||
|
|
Loading…
Reference in a new issue