Method: Spree::Variant#price_selector

Defined in:
app/models/spree/variant.rb

#price_selectorSpree::Variant::PriceSelector

Returns an instance of the globally configured variant price selector class for this variant. It’s cached so we don’t create too many objects.

Returns:



291
292
293
# File 'app/models/spree/variant.rb', line 291

def price_selector
  @price_selector ||= Spree::Config.variant_price_selector_class.new(self)
end