text: module Spree
    class ProductCustomization < ActiveRecord::Base
      belongs_to :product_customization_type
      belongs_to :line_item
      has_many :customized_product_options, :dependent => :destroy
      attr_accessible :product_customization_type_id, :line_item_id
      # TODO: Jeff, add 'required'
  
      # price might depend on something contained in the variant (like product property value)a
      def price(variant=nil)
        amount = product_customization_type.calculator.compute(self, variant)
      end
  
      def calculator
        product_customization_type.calculator
      end
    end
  end
  