Module: Spree::Metadata
- Extended by:
- ActiveSupport::Concern
- Included in:
- Address, Catalog, Category, Channel, Claim, ClaimReason, Collection, CommissionLine, CommissionRate, Company, CompanyInvitation, CreditCard, DeliveryMethod, DigitalAsset, Exchange, ExternalReference, Fulfillment, LineItem, Media, OptionType, OptionValue, Order, OrderCancellationReason, OrderGroup, PackageType, Payment, PaymentMethod, PaymentSource, Product, ProductSubmission, ProductType, Promotion, PurchaseOrder, Refund, Return, Seller, SellerPayout, SellerRequirement, SellerRequirementSubmission, SellerTransfer, ShippingLabel, StockLevel, StockReceipt, StockTransfer, Store, StoreCredit, Supplier, TaxExemptionCertificate, TaxExemptionReason, TaxRate, Variant
- Defined in:
- app/models/concerns/spree/metadata.rb
Overview
Private, schemaless developer data. Deliberately does NOT pull in HasCustomFields — custom fields are the separate, public, schema-defined system. Models that want both include both.
Defined Under Namespace
Classes: HashSerializer
Instance Method Summary collapse
-
#private_metadata ⇒ Object
Deprecated alias for the renamed
metadatacolumn. - #private_metadata=(value) ⇒ Object
Instance Method Details
#private_metadata ⇒ Object
Deprecated alias for the renamed metadata column. Removed in Spree 6.3.
Only the reader and writer are bridged. The column is gone, so the attribute
methods Active Record generated alongside it — private_metadata?,
private_metadata_changed?, private_metadata_was,
private_metadata_before_type_cast and the rest of the dirty-tracking family
— no longer exist and raise NoMethodError. Call the metadata equivalents.
21 22 23 24 |
# File 'app/models/concerns/spree/metadata.rb', line 21 def Spree::Deprecation.warn('private_metadata is deprecated and will be removed in Spree 6.3. Use metadata instead.') end |
#private_metadata=(value) ⇒ Object
26 27 28 29 |
# File 'app/models/concerns/spree/metadata.rb', line 26 def (value) Spree::Deprecation.warn('private_metadata= is deprecated and will be removed in Spree 6.3. Use metadata= instead.') self. = value end |