Skip to content

Commit

Permalink
Move master_image delegation into main master delegations block
Browse files Browse the repository at this point in the history
  • Loading branch information
kennyadsl committed Dec 24, 2017
1 parent 0fa1d37 commit 0f51149
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 @@ -77,13 +77,13 @@ def find_or_build_master
:display_amount,
:display_price,
:has_default_price?,
:images,
:price_for,
:price_in,
:rebuild_vat_prices=,
to: :find_or_build_master

delegate :images, to: :master, prefix: true
alias_method :images, :master_images
alias_method :master_images, :images

has_many :variant_images, -> { order(:position) }, source: :images, through: :variants_including_master

Expand Down

0 comments on commit 0f51149

Please sign in to comment.