Sha256: bbde2d8eb29971c2d00a5a42235035a9743ea7176ae4442d2a98fee04a57b0d3

Contents?: true

Size: 181 Bytes

Versions: 3

Compression:

Stored size: 181 Bytes

Contents

module ShoppingCart
  module OrderItemsQuantityHelper
    include ShoppingCart::CurrentSession

    def order_items_quantity
      current_order&.items_count || 0
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loker-shopping-cart-0.1.3 app/helpers/shopping_cart/order_items_quantity_helper.rb
loker-shopping-cart-0.1.2 app/helpers/shopping_cart/order_items_quantity_helper.rb
loker-shopping-cart-0.1.1 app/helpers/shopping_cart/order_items_quantity_helper.rb