Sha256: 4e8e6be651f7e173ec7b9677b963d29f3c0e7e48acd11c69e99d333d995e63fd
Contents?: true
Size: 410 Bytes
Versions: 2
Compression:
Stored size: 410 Bytes
Contents
# frozen_string_literal: true module SolidusConfigurableKits module Spree module OrderDecorator def self.prepended(base) base.register_line_item_comparison_hook :never_match_kit_items end private def never_match_kit_items(line_item, _options) !(line_item.kit_item? || line_item.kit_items.present?) end ::Spree::Order.prepend self end end end
Version data entries
2 entries across 2 versions & 1 rubygems