Method: Effective::CartsController#show

Defined in:
app/controllers/effective/carts_controller.rb

#showObject



5
6
7
8
9
10
11
# File 'app/controllers/effective/carts_controller.rb', line 5

def show
  @cart = current_cart
  @pending_orders = Effective::Order.pending.where(user: current_user) if current_user.present?

  @page_title ||= 'My Cart'
  EffectiveOrders.authorize!(self, :show, @cart)
end