mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Revert rubocop autocorrect change, it breaks some of the tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user