Sha256: daf74df691643e984280cb844d877de1904d7cc684174559bb0b87f5ee3a1765

Contents?: true

Size: 463 Bytes

Versions: 462

Compression:

Stored size: 463 Bytes

Contents

module Caboose        
  class Modification < ActiveRecord::Base
    self.table_name  = 'store_modifications'
    self.primary_key = 'id'

    belongs_to :product, :class_name => 'Caboose::Product'
    has_many :modification_values, :class_name => 'Caboose::ModificationValue', :order => 'sort_order'
    attr_accessible :id,
      :product_id,
      :sort_order,
      :name      
      
    def values
      return self.modification_values
    end

  end
end

Version data entries

462 entries across 462 versions & 1 rubygems

Version Path
caboose-cms-0.9.209 app/models/caboose/modification.rb
caboose-cms-0.9.208 app/models/caboose/modification.rb
caboose-cms-0.9.207 app/models/caboose/modification.rb
caboose-cms-0.9.206 app/models/caboose/modification.rb
caboose-cms-0.9.205 app/models/caboose/modification.rb
caboose-cms-0.9.204 app/models/caboose/modification.rb
caboose-cms-0.9.203 app/models/caboose/modification.rb
caboose-cms-0.9.202 app/models/caboose/modification.rb
caboose-cms-0.9.201 app/models/caboose/modification.rb
caboose-cms-0.9.200 app/models/caboose/modification.rb
caboose-cms-0.9.198 app/models/caboose/modification.rb
caboose-cms-0.9.197 app/models/caboose/modification.rb
caboose-cms-0.9.196 app/models/caboose/modification.rb
caboose-cms-0.9.195 app/models/caboose/modification.rb
caboose-cms-0.9.194 app/models/caboose/modification.rb
caboose-cms-0.9.193 app/models/caboose/modification.rb
caboose-cms-0.9.192 app/models/caboose/modification.rb
caboose-cms-0.9.191 app/models/caboose/modification.rb
caboose-cms-0.9.190 app/models/caboose/modification.rb
caboose-cms-0.9.189 app/models/caboose/modification.rb