Limit weapon search to 10 at once
This commit is contained in:
parent
39490461bd
commit
64073bdae8
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ class Api::V1::SearchController < ApplicationController
|
||||||
def index
|
def index
|
||||||
logger.debug params
|
logger.debug params
|
||||||
if params[:query].present?
|
if params[:query].present?
|
||||||
@weapons = Weapon.search(params[:query])
|
@weapons = Weapon.search(params[:query]).limit(10)
|
||||||
else
|
else
|
||||||
@weapons = Weapon.all
|
@weapons = Weapon.all
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue