Class: Spree::Metafields::RichText
- Inherits:
-
Spree::Metafield
- Object
- Spree::Metafield
- Spree::Metafields::RichText
- Defined in:
- app/models/spree/metafields/rich_text.rb
Instance Method Summary collapse
Instance Method Details
#csv_value ⇒ Object
13 14 15 |
# File 'app/models/spree/metafields/rich_text.rb', line 13 def csv_value value&.body&.to_plain_text || '' end |
#serialize_value ⇒ Object
9 10 11 |
# File 'app/models/spree/metafields/rich_text.rb', line 9 def serialize_value value&.body&.to_s end |