Revert rubocop autocorrect change, it breaks some of the tests

This commit is contained in:
Luis Ramos
2020-08-06 12:51:03 +01:00
parent b9319239d5
commit d6862cdbce

View File

@@ -18,11 +18,15 @@ module Spree
extend Spree::Preferences::PreferableClassMethods
if respond_to?(:after_create)
after_create(&:save_pending_preferences)
after_create do |obj|
obj.save_pending_preferences
end
end
if respond_to?(:after_destroy)
after_destroy(&:clear_preferences)
after_destroy do |obj|
obj.clear_preferences
end
end
end
end