Class: ProductProperty
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ProductProperty
- Defined in:
- app/models/product_property.rb
Instance Method Summary collapse
-
#property_name ⇒ Object
virtual attributes for use with AJAX completion stuff.
- #property_name=(name) ⇒ Object
Instance Method Details
#property_name ⇒ Object
virtual attributes for use with AJAX completion stuff
8 9 10 |
# File 'app/models/product_property.rb', line 8 def property_name property.name if property end |
#property_name=(name) ⇒ Object
12 13 14 |
# File 'app/models/product_property.rb', line 12 def property_name=(name) self.property = Property.find_by_name(name) unless name.blank? end |