forgeplus/app/controllers/weapps/searchs_controller.rb

13 lines
281 B
Ruby
Raw Permalink Normal View History

2020-03-09 00:40:16 +08:00
class Weapps::SearchsController < Weapps::BaseController
after_action :record_search_keyword, only: [:index]
def index
@results = Weapps::SearchQuery.call(search_params)
end
private
def search_params
params.permit(:keyword, :type, :page, :per_page)
end
end