Class: Spree::ProductProperty

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/spree/product_property.rb

Instance Method Summary collapse

Instance Method Details

#property_nameObject

virtual attributes for use with AJAX completion stuff



10
11
12
# File 'app/models/spree/product_property.rb', line 10

def property_name
  property.name if property
end

#property_name=(name) ⇒ Object



14
15
16
# File 'app/models/spree/product_property.rb', line 14

def property_name=(name)
  self.property = Property.find_by_name(name) unless name.blank?
end