Class: ShopVariants::Tags::Helpers
- Inherits:
-
Object
- Object
- ShopVariants::Tags::Helpers
- Defined in:
- lib/shop_variants/tags/helpers.rb
Class Method Summary collapse
Class Method Details
.current_product_variant(tag) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/shop_variants/tags/helpers.rb', line 16 def current_product_variant(tag) result = nil if tag.locals.shop_product_variant.present? result = tag.locals.shop_product_variant end result end |
.current_product_variants(tag) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/shop_variants/tags/helpers.rb', line 6 def current_product_variants(tag) result = nil if tag.locals.shop_product.present? result = tag.locals.shop_product.variants end result end |