Sha256: 88edb915c551a197d85307ac72370324f622d4af3329e522a087ba64d1b774e7

Contents?: true

Size: 202 Bytes

Versions: 2

Compression:

Stored size: 202 Bytes

Contents

module Workarea
  decorate Storefront::OrderViewModel, with: :kount do
    def placed_at
      if model.under_review?
        Time.current
      else
        model.placed_at
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-kount-3.3.1 app/view_models/workarea/storefront/order_view_model.decorator
workarea-kount-3.3.0 app/view_models/workarea/storefront/order_view_model.decorator