Sha256: d7d61984d28972d98bfafc3f1101ee21118f0a315e4f59ba1f81bfcd3f594c3b
Contents?: true
Size: 408 Bytes
Versions: 3
Compression:
Stored size: 408 Bytes
Contents
module PiggybakVariants class Option < ActiveRecord::Base has_many :option_values, -> { order(:position) }, :dependent => :destroy has_many :option_configurations, :dependent => :destroy default_scope { order('position ASC') } accepts_nested_attributes_for :option_values, :allow_destroy => true accepts_nested_attributes_for :option_configurations, :allow_destroy => true end end
Version data entries
3 entries across 3 versions & 1 rubygems