Class: Renalware::Letters::DescriptionsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Renalware::Letters::DescriptionsController
- Defined in:
- app/controllers/renalware/letters/descriptions_controller.rb
Defined Under Namespace
Classes: DescriptionAutocompleteResponse
Instance Method Summary collapse
Instance Method Details
#search ⇒ Object
8 9 10 11 |
# File 'app/controllers/renalware/letters/descriptions_controller.rb', line 8 def search query = Letters::Descriptions::SearchQuery.new(params[:term]) render json: DescriptionAutocompleteResponse.to_json(query.call) end |