Method: Spree::Variant#should_track_inventory?
- Defined in:
- app/models/spree/variant.rb
#should_track_inventory? ⇒ Boolean
Shortcut method to determine if inventory tracking is enabled for this variant. This considers both variant tracking flag and site-wide inventory tracking settings.
372 373 374 |
# File 'app/models/spree/variant.rb', line 372 def should_track_inventory? track_inventory? && Spree::Config.track_inventory_levels end |