Class: Spree::CatalogAssignment
- Inherits:
-
Object
- Object
- Spree::CatalogAssignment
- Defined in:
- app/models/spree/catalog_assignment.rb
Overview
Who gets a catalog. Polymorphic, but the assignable set is small and closed: CustomerGroup and Company — buyer audiences only. A company-node assignment applies to the node's subtree.
Channel and Market were assignable in the 6.0 pre-release but never read
(decisions.md 2026-08-28): a channel's catalog is its default_catalog,
and a market catalog waits for the regional-assortment design. A future
type joins this list together with the resolution code that reads it.
The assignment direction is "who gets this catalog", not "what catalogs does this entity have" — resolution queries by catalog.
Constant Summary collapse
- ASSIGNABLE_TYPES =
%w[Spree::CustomerGroup Spree::Company].freeze