Class: Cats::Core::TransportersController

Inherits:
ApplicationController show all
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

#filterObject



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