Revert "Fix 9 Rubocop violations (Rails/Presence and Rails/RedirectBackOrTo)Fix rubocop violations"

This commit is contained in:
David-OFN-CA
2026-02-26 17:04:21 -05:00
committed by GitHub
parent 2d46676bb4
commit 7922bf7b65
8 changed files with 35 additions and 14 deletions

View File

@@ -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