Class: Comable::Admin::OrdersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Comable::Admin::OrdersController
- Defined in:
- app/controllers/comable/admin/orders_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
8 9 10 11 |
# File 'app/controllers/comable/admin/orders_controller.rb', line 8 def index @q = Comable::Order.complete.ransack(params[:q]) @orders = @q.result.page(params[:page]).per(15).order('completed_at DESC').accessible_by(current_ability) end |