Class: Para::Stall::Admin::CartsController

Inherits:
Admin::CrudResourcesController
  • Object
show all
Defined in:
app/controllers/para/stall/admin/carts_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
8
9
10
11
12
13
14
15
# File 'app/controllers/para/stall/admin/carts_controller.rb', line 5

def index
  # Default to only showing paid carts
  params[:q] ||= {}
  params[:q][:payment_paid_at_null] ||= 0

  super

  # Only show filled carts, forget empty ones that just wait to be
  # cleaned up by the rake task
  @resources = @resources.filled
end