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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Set migration version. Use ancestors instead of module_parents.
Sebastian Palma3136d1404738
diff --git a/api/app/models/concerns/spree/webhooks/has_webhooks.rb b/api/app/models/concerns/spree/webhooks/has_webhooks.rbindex 6ff9a35614..479d3699cd 100644--- a/api/app/models/concerns/spree/webhooks/has_webhooks.rb+++ b/api/app/models/concerns/spree/webhooks/has_webhooks.rb@@ -25,7 +25,7 @@ module Spreeenddef webhooks_descendant?- self.class.module_parents.include?(Spree::Webhooks)+ self.class.ancestors.include?(Spree::Webhooks)enddef payloaddiff --git a/api/db/migrate/20210902162826_create_spree_webhooks_tables.rb b/api/db/migrate/20210902162826_create_spree_webhooks_tables.rbindex 80fb1b0a1c..5a0a6bf5d8 100644--- a/api/db/migrate/20210902162826_create_spree_webhooks_tables.rb+++ b/api/db/migrate/20210902162826_create_spree_webhooks_tables.rb@@ -1,4 +1,4 @@-class CreateSpreeWebhooksTables < ActiveRecord::Migration[6.1]+class CreateSpreeWebhooksTables < ActiveRecord::Migration[5.2]def changecreate_table :spree_webhooks_endpoints do |t|t.string :url, null: false