Module: SolidusVolumePricing::Spree::Admin::VariantsControllerDecorator
- Defined in:
- app/decorators/controllers/solidus_volume_pricing/spree/admin/variants_controller_decorator.rb
Instance Method Summary collapse
Instance Method Details
#edit ⇒ Object
7 8 9 10 |
# File 'app/decorators/controllers/solidus_volume_pricing/spree/admin/variants_controller_decorator.rb', line 7 def edit @variant.volume_prices.build if @variant.volume_prices.empty? super end |
#volume_prices ⇒ Object
12 13 14 15 |
# File 'app/decorators/controllers/solidus_volume_pricing/spree/admin/variants_controller_decorator.rb', line 12 def volume_prices @product = @variant.product @variant.volume_prices.build if @variant.volume_prices.empty? end |