From 4c5e9c20dd406c2a59505aa1edab4483aef4268a Mon Sep 17 00:00:00 2001 From: Brian Christian Date: Mon, 4 Dec 2017 10:02:29 -0800 Subject: [PATCH] remove redundant delegation from product model --- core/app/models/spree/product.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/app/models/spree/product.rb b/core/app/models/spree/product.rb index 1d9fb2d5a03..d4adc7f97b3 100644 --- a/core/app/models/spree/product.rb +++ b/core/app/models/spree/product.rb @@ -60,8 +60,8 @@ def find_or_build_master end MASTER_ATTRIBUTES = [ - :rebuild_vat_prices, :sku, :price, :currency, :display_amount, :display_price, :weight, - :height, :width, :depth, :cost_currency, :price_in, :price_for, :amount_in, :cost_price + :rebuild_vat_prices, :sku, :price, :currency, :weight, :height, :width, :depth, + :cost_currency, :price_in, :price_for, :amount_in, :cost_price ] MASTER_ATTRIBUTES.each do |attr| delegate :"#{attr}", :"#{attr}=", to: :find_or_build_master