Sha256: 87a64fefb6946139bdb15a3047c5ba1bd283a0bf5ef08ae1ffd41ded5595557c
Contents?: true
Size: 350 Bytes
Versions: 29
Compression:
Stored size: 350 Bytes
Contents
class ProductProperty < ActiveRecord::Base belongs_to :product belongs_to :property validates :property, :presence => true # 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
29 entries across 29 versions & 6 rubygems