Class: Admin::SearchController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/tang/admin/search_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
8
9
10
11
12
13
14
15
16
# File 'app/controllers/tang/admin/search_controller.rb', line 5

def index
  @query = params[:query]

  charges = search_charges
  customers = search_customers
  plans = search_plans
  coupons = search_coupons
  invoices = search_invoices
  invoice_items = search_invoice_items

  @results = charges + customers + plans + coupons + invoices + invoice_items
end