Class: Spree::Api::V3::Admin::PromotionActionSerializer
- Inherits:
-
BaseSerializer
- Object
- BaseSerializer
- Spree::Api::V3::Admin::PromotionActionSerializer
- Defined in:
- app/serializers/spree/api/v3/admin/promotion_action_serializer.rb
Overview
Serializes Spree::PromotionAction (and its STI subclasses) for the admin promotion editor. The shape is intentionally generic so a single component can render any subclass — ‘preferences` is the current value hash, `preference_schema` describes its fields.
Method Summary
Methods inherited from BaseSerializer
#current_currency, #current_locale, #current_store, #current_user, #expand?, #expands, #nested_expands_for, #nested_params