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.

We shouldn't track Roles with webhooks (#11652)

Damian Legawiec48e838114f10
diff --git a/core/app/models/spree/role.rb b/core/app/models/spree/role.rb
index 362bb22112..02611c4c53 100644
--- a/core/app/models/spree/role.rb
+++ b/core/app/models/spree/role.rb
@@ -1,9 +1,6 @@
module Spree
class Role < Spree::Base
include UniqueName
- if defined?(Spree::Webhooks)
- include Spree::Webhooks::HasWebhooks
- end
has_many :role_users, class_name: 'Spree::RoleUser', dependent: :destroy
has_many :users, through: :role_users, class_name: Spree.user_class.to_s