Class: Cats::Core::TransportersController
- Inherits:
-
ApplicationController
- Object
- ActionController::API
- ApplicationController
- Cats::Core::TransportersController
- Includes:
- Common
- Defined in:
- app/controllers/cats/core/transporters_controller.rb
Instance Method Summary collapse
Methods included from Common
#create, #index, #show, #update
Methods inherited from ApplicationController
#authenticate, #current_user, #skip_bullet
Instance Method Details
#filter ⇒ Object
6 7 8 9 |
# File 'app/controllers/cats/core/transporters_controller.rb', line 6 def filter query = Transporter.ransack(params[:q]) render json: {success: true, data: serialize(query.result)} end |