Sha256: 40e33fda30cccf8f9fedcefda681d913e9291cae13eba7b4db1c0855aeeb3141
Contents?: true
Size: 514 Bytes
Versions: 1
Compression:
Stored size: 514 Bytes
Contents
module Workarea targets = [ Storefront::ProductTemplates::OptionThumbnailsViewModel, Storefront::ProductTemplates::OptionSelectsViewModel ] if Plugin.installed?("Workarea::Swatches") targets << Storefront::ProductTemplates::SwatchesViewModel end decorate(*targets, with: :flow_io) do def pricing super.tap do |pricing_collection| if options[:flow_experience] pricing_collection.flow_experience = options[:flow_experience] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-flow_io-1.2.1 | app/view_models/workarea/storefront/product_templates/option_set_view_model.decorator |