Sha256: 9b230397810e6ff542512297e4e51e880e6b7c1bdb9ac3818018ccca57402b52

Contents?: true

Size: 466 Bytes

Versions: 3

Compression:

Stored size: 466 Bytes

Contents

module Spree
  module Account
    class OrdersController < Spree::StoreController

      before_filter :check_logged_in_user

      def index
        @user = try_spree_current_user
        @orders = @user.orders.complete.order('completed_at desc')
      end

      def accurate_title
        Spree.t(:my_account)
      end

      private

      def check_logged_in_user
        redirect_to spree_login_path unless try_spree_current_user
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_my_favourites-2.2.6 app/controllers/spree/account/orders_controller.rb
spree_my_favourites-2.2.5 app/controllers/spree/account/orders_controller.rb
spree_my_favourites-2.2.4 app/controllers/spree/account/orders_controller.rb