Class: Upframework::SearchesController
- Inherits:
-
ApiController
- Object
- ApplicationController
- ApiController
- Upframework::SearchesController
- Defined in:
- app/controllers/upframework/searches_controller.rb
Instance Method Summary collapse
Methods inherited from ApiController
Methods included from CrudEndpoint
#create, #destroy, #show, #update
Instance Method Details
#index ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/controllers/upframework/searches_controller.rb', line 9 def index args = { current_ability: current_ability, current_user: current_user } args.merge!(permitted_params) resource_scope = search_class.run(args).result render_serialized resource_scope end |