Skip to content

Commit

Permalink
Fix an error in ImageDecorator where 'variant' is passed instead of '…
Browse files Browse the repository at this point in the history
…viewable'

Signed-off-by: Rémy Coutable <[email protected]>
  • Loading branch information
rymai committed Oct 5, 2018
1 parent 4c8fbce commit e513f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/solidus_decorators/spree/image_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def mailchimp_sync
SolidusMailchimpSync::ProductSynchronizer.new(self.viewable.product).auto_sync(force: true)
else
# image just on this variant, just need to sync this one.
SolidusMailchimpSync::VariantSynchronizer.new(self.variant).auto_sync(force: true)
SolidusMailchimpSync::VariantSynchronizer.new(self.viewable).auto_sync(force: true)
end
end
end
Expand Down

0 comments on commit e513f5e

Please sign in to comment.