Address violation of Rubocop Rails/Delegate

This commit is contained in:
Kristina Lim
2020-05-14 04:54:50 +08:00
committed by Luis Ramos
parent 1e8543dfe7
commit 2acf61fd0f

View File

@@ -17,9 +17,7 @@ module Spree
Spree::InventoryUnit.backordered_for_stock_item(self)
end
def variant_name
variant.name
end
delegate :name, to: :variant, prefix: true
def adjust_count_on_hand(value)
with_lock do