Skip to content

Commit

Permalink
Merge pull request #2427 from brchristian/product_delegate
Browse files Browse the repository at this point in the history
remove redundant delegation from product model
  • Loading branch information
jhawthorn authored Dec 20, 2017
2 parents c61e6bb + 4c5e9c2 commit ce908da
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 ce908da

Please sign in to comment.