Sha256: d2ee65d858e3a6c360d2cca0bda9ad09da0e5633d4f5325befa161c56d93173e
Contents?: true
Size: 346 Bytes
Versions: 1
Compression:
Stored size: 346 Bytes
Contents
module Gemgento class User::OrdersController < User::BaseController def index @orders = current_user.orders.where.not(status: [nil, '']).order('created_at DESC') respond_with @orders end def show @order = Order.find_by(increment_id: params[:id], user: current_user) respond_with @order end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemgento-2.8.0 | app/controllers/gemgento/user/orders_controller.rb |