Sha256: c1364f37e379ead3dbb7e7b78cfa397abf6f5da305fb7625b63f3c9cc0472d94
Contents?: true
Size: 299 Bytes
Versions: 3
Compression:
Stored size: 299 Bytes
Contents
class ProductOffer < ActiveRecord::Base attr_protected :created_at, :updated_at belongs_to :product_offer_record, :polymorphic => true def after_destroy if self.product_offer_record && !self.product_offer_record.frozen? self.product_offer_record.destroy end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
erp_products-4.0.0 | app/models/product_offer.rb |
erp_products-3.1.1 | app/models/product_offer.rb |
erp_products-3.1.0 | app/models/product_offer.rb |