Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Address the missing #secret_key? in Rails 6.x

Stefan Vermaas8b344caae148
diff --git a/api/app/models/spree/webhooks/subscriber.rb b/api/app/models/spree/webhooks/subscriber.rb
index 7b681e1353..39f6e94e5a 100644
--- a/api/app/models/spree/webhooks/subscriber.rb
+++ b/api/app/models/spree/webhooks/subscriber.rb
@@ -40,6 +40,13 @@ module Spree
end
end
+ # Verifies the existance of the {#secret_key} attribute.
+ #
+ # @return [true, false]
+ def secret_key?
+ !secret_key.nil?
+ end
+
private
def check_uri_path