Sha256: 0ac00c6ae376d738e09ce7459dd0fa6dff2ae3d3c8c04edf0b2d65a0ec3ed20d

Contents?: true

Size: 347 Bytes

Versions: 4

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true

module SolidusProductAssembly
  module Spree
    module ReturnItemDecorator
      def self.prepended(base)
        base.class_eval do
          self.refund_amount_calculator = ::Spree::Calculator::Returns::AssembliesDefaultRefundAmount
        end
      end

      ::Spree::ReturnItem.prepend self
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_product_assembly-1.4.0 app/decorators/models/solidus_product_assembly/spree/return_item_decorator.rb
solidus_product_assembly-1.3.0 app/decorators/models/solidus_product_assembly/spree/return_item_decorator.rb
solidus_product_assembly-1.2.0 app/decorators/models/solidus_product_assembly/spree/return_item_decorator.rb
solidus_product_assembly-1.1.0 app/decorators/models/solidus_product_assembly/spree/return_item_decorator.rb