Module: Spree::WishlistHelper

Included in:
StoreController
Defined in:
app/helpers/spree/wishlist_helper.rb

Instance Method Summary collapse

Instance Method Details

#current_wishlistSpree::Wishlist

Returns the current wishlist for the current user.

Returns:

  • (Spree::Wishlist)

    The current wishlist



6
7
8
# File 'app/helpers/spree/wishlist_helper.rb', line 6

def current_wishlist
  @current_wishlist ||= try_spree_current_user&.default_wishlist_for_store(current_store)
end