Skip to content

Commit

Permalink
Merge pull request spree-contrib#12 from kinesbea/master
Browse files Browse the repository at this point in the history
Enable delete of volume pricing (Rails 3.0.9)
  • Loading branch information
jsqu99 committed Oct 3, 2011
2 parents 6d32ba8 + 41bdb8f commit d642121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/variant_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Variant.class_eval do
has_many :volume_prices, :order => :position, :dependent => :destroy
accepts_nested_attributes_for :volume_prices
accepts_nested_attributes_for :volume_prices, :allow_destroy => true

# calculates the price based on quantity
def volume_price(quantity)
Expand Down

0 comments on commit d642121

Please sign in to comment.