Sha256: 901ec4f2a52c7f3e1f9a4e1a842c60a5ac6146ad69978d44987b28d17eeb8c50
Contents?: true
Size: 577 Bytes
Versions: 29
Compression:
Stored size: 577 Bytes
Contents
module Spree module Api module V2 module Platform class PriceSerializer < BaseSerializer include ResourceSerializerConcern attribute :display_price_including_vat_for do |price, params| price.display_price_including_vat_for(params[:price_options].presence || {}).to_s end attribute :display_compare_at_price_including_vat_for do |price, params| price.display_compare_at_price_including_vat_for(params[:price_options].presence || {}).to_s end end end end end end
Version data entries
29 entries across 29 versions & 3 rubygems