Sha256: 784f63ed7938f536fd02626bac45595b3fa1d87c7ebbc47b3b01dd28ad10355c
Contents?: true
Size: 600 Bytes
Versions: 14
Compression:
Stored size: 600 Bytes
Contents
module PiggybakVariants class Option < ActiveRecord::Base self.table_name = "options" attr_accessible :name, :position 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 accepts_nested_attributes_for :option_configurations, :allow_destroy => true attr_accessible :option_configurations_attributes, :allow_destroy => true end end
Version data entries
14 entries across 14 versions & 1 rubygems