[#330] fix searh api

This commit is contained in:
Alexander Machehin 2014-09-30 18:50:59 +06:00
parent 92db8c7968
commit 89f322cd24
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ class Api::V1::SearchController < Api::V1::BaseController
@results = Search.by_term_and_type(
params[:query],
(params[:type] || 'all'),
current_ability,
paginate_params
)
respond_to :json