Sha256: 907e8b9f8429afba71d837d1065795ddb8ec42efb165df3d8eb51815e5a69d91
Contents?: true
Size: 335 Bytes
Versions: 1
Compression:
Stored size: 335 Bytes
Contents
class Plugins::Ecommerce::ProductItemDecorator < Draper::Decorator delegate_all def the_sub_total "#{h.current_site.current_unit}#{sprintf('%.2f', object.sub_total)}" end def the_price product.decorate.the_price end def the_tax product.decorate.the_tax end def price product.decorate.price end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
camaleon_ecommerce-1.1 | app/decorators/plugins/ecommerce/product_item_decorator.rb |