Class: Trade::BuyersController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Trade::BuyersController
- Defined in:
- app/controllers/trade/buyers_controller.rb
Instance Method Summary collapse
Instance Method Details
#search ⇒ Object
3 4 5 6 |
# File 'app/controllers/trade/buyers_controller.rb', line 3 def search @buyers = User.default_where('name-like': params[:q]) render json: { results: @buyers.as_json(only: [:id], methods: [:name_detail]) } end |