Module: Spree::Metafields
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/spree/metafields.rb
Overview
Deprecation bridge for the 6.0 custom-fields rename. Serves the two roles
the old Spree::Metafields name had, and is removed in 6.3:
- The concern —
include Spree::Metafieldsstill works and gives a model the full custom-fields surface via HasCustomFields. - The STI namespace —
Spree::Metafields::ShortTextand friends are constant aliases forSpree::CustomFields::*. Thetypecolumn stores the new class names, so these resolve to the very same classes and existing rows keep loading.
Constant Summary collapse
- ShortText =
CustomFields::ShortText
- LongText =
CustomFields::LongText
- RichText =
CustomFields::RichText
- Number =
CustomFields::Number
- Boolean =
CustomFields::Boolean
- Json =
CustomFields::Json