Sha256: 146cb2def5883e25aa7bd853793efe1e174b9f1af12f1a948353d96080694b44
Contents?: true
Size: 355 Bytes
Versions: 22
Compression:
Stored size: 355 Bytes
Contents
class ProductProperty < ActiveRecord::Base belongs_to :product belongs_to :property validates_presence_of :property # virtual attributes for use with AJAX completion stuff def property_name property.name if property end def property_name=(name) self.property = Property.find_by_name(name) unless name.blank? end end
Version data entries
22 entries across 22 versions & 3 rubygems