Skip to content

Commit

Permalink
remove redundant delegation from product model
Browse files Browse the repository at this point in the history
  • Loading branch information
brchristian committed Dec 4, 2017
1 parent 354eb21 commit 4c5e9c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/app/models/spree/product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c5e9c2

Please sign in to comment.