Class: Plugins::Ecommerce::ProductVariation
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Plugins::Ecommerce::ProductVariation
- Defined in:
- app/models/plugins/ecommerce/product_variation.rb
Instance Method Summary collapse
-
#attribute_values ⇒ Object
return all attribute values assigned to this product.
Instance Method Details
#attribute_values ⇒ Object
return all attribute values assigned to this product
7 8 9 |
# File 'app/models/plugins/ecommerce/product_variation.rb', line 7 def attribute_values Plugins::Ecommerce::Attribute.only_value.where(id: self.attribute_ids.to_s.split(',')) end |