Sha256: bcb1dbfe76a01c7ba3868f65ba671285784310ba3a510f677fd65dd148efb40c

Contents?: true

Size: 552 Bytes

Versions: 1

Compression:

Stored size: 552 Bytes

Contents

module PiggybakVariants
  class Option < ActiveRecord::Base
    self.table_name = "options"

    attr_accessible :name, :position
    has_many :option_values
    has_many :option_configurations

    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

1 entries across 1 versions & 1 rubygems

Version Path
piggybak_variants-0.0.1 app/models/piggybak_variants/option.rb