bisscomm/refinerycms-products

View on GitHub
app/models/refinery/products/propertization.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Refinery
  module Products
    class Propertization < ActiveRecord::Base
      self.table_name = 'refinery_products_properties_products'

      translates :value

      belongs_to :product,           :class_name => 'Refinery::Products::Product',  :foreign_key => :product_id
      belongs_to :products_property, :class_name => 'Refinery::Products::Property', :foreign_key => :products_property_id
    end
  end
end