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:

  1. The concern — include Spree::Metafields still works and gives a model the full custom-fields surface via HasCustomFields.
  2. The STI namespace — Spree::Metafields::ShortText and friends are constant aliases for Spree::CustomFields::*. The type column 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