Sha256: e1b5e2c9be9801a8257f0a0c450c20554f85744d511830cd5811a95e5c958213

Contents?: true

Size: 267 Bytes

Versions: 2

Compression:

Stored size: 267 Bytes

Contents

module Workarea
  decorate CreateFulfillment, with: :global_e do
    def initialize(order, global_e: false)
      @order = order
      @global_e = global_e
    end

    def fulfillment
      @fulfillment ||= super.tap { |f| f.global_e = @global_e }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-global_e-1.3.0 app/services/workarea/create_fulfillment.decorator
workarea-global_e-1.2.1 app/services/workarea/create_fulfillment.decorator