mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-02 06:51:40 +00:00
Revert "Fix 9 Rubocop violations (Rails/Presence and Rails/RedirectBackOrTo)Fix rubocop violations"
This commit is contained in:
@@ -295,7 +295,7 @@ module Spree
|
||||
# The variant is invalid if no supplier is present, but this method can be triggered when
|
||||
# importing product. In this scenario the variant has not been updated with the supplier yet
|
||||
# hence the check.
|
||||
first_variant.supplier.presence&.touch
|
||||
first_variant.supplier.touch if first_variant.supplier.present?
|
||||
end
|
||||
|
||||
def validate_image
|
||||
|
||||
Reference in New Issue
Block a user