Class: Locomotive::SearchForResourcesController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/locomotive/search_for_resources_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



8
9
10
11
# File 'app/controllers/locomotive/search_for_resources_controller.rb', line 8

def index
  resources = service.find_resources(params[:type], params[:q], params[:scope])
  respond_with resources
end