def index
      @orders = Effective::Order.deep.purchased.where(user: current_user)
      @pending_orders = Effective::Order.deep.pending.where(user: current_user)

      EffectiveOrders.authorize!(self, :index, Effective::Order.new(user: current_user))
    end
def index
      @orders = Effective::Order.deep.purchased.where(user: current_user)
      @pending_orders = Effective::Order.deep.pending.where(user: current_user)

      EffectiveOrders.authorize!(self, :index, Effective::Order.new(user: current_user))
    end
My Orders History