Sha256: 51b3e7c3f8fad831ae7b249a0f93abf8a69f56e57ad61988ec9d9b217beb41b3

Contents?: true

Size: 398 Bytes

Versions: 3

Compression:

Stored size: 398 Bytes

Contents

class TbCommerce::ProductCustomization < ActiveRecord::Base
  self.table_name = 'tb_commerce_product_customizations'

  validates :product, :customization, :presence => true

  belongs_to :product, :inverse_of => :product_customizations, :foreign_key => :tb_commerce_product_id
  belongs_to :customization, :inverse_of => :product_customizations, :foreign_key => :tb_commerce_customization_id

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tb_commerce-0.0.4 app/models/tb_commerce/product_customization.rb
tb_commerce-0.0.3 app/models/tb_commerce/product_customization.rb
tb_commerce-0.0.2 app/models/tb_commerce/product_customization.rb