app/models/piggybak_variants/option.rb in piggybak_variants-0.0.1 vs app/models/piggybak_variants/option.rb in piggybak_variants-0.0.2

- old
+ new

@@ -1,11 +1,11 @@ module PiggybakVariants class Option < ActiveRecord::Base self.table_name = "options" attr_accessible :name, :position - has_many :option_values - has_many :option_configurations + has_many :option_values, :dependent => :destroy + has_many :option_configurations, :dependent => :destroy default_scope :order => "position ASC" accepts_nested_attributes_for :option_values, :allow_destroy => true attr_accessible :option_values_attributes, :allow_destroy => true